Part Number Hot Search : 
MAX4182 IC6C596 SIRA34DP FDQ7238S PE423708 FFM201L SB260 G20J8
Product Description
Full Text Search
 

To Download MSM6688 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 E2D0026-27-43
Semiconductor MSM6688/6688L
ADPCM Solid-State Recorder IC
This version: Jan. 1998 Previous version: May. 1997
GENERAL DESCRIPTION
The MSM6688/6688L is a "solid-state recorder" IC developed using the ADPCM method. By externally connecting a microphone, a speaker, a speaker drive amplifier, and a dedicated register to store ADPCM data, it can record and play back voice data in a manner similar to a tape recorder. The MSM6688 supports 5 V operation and has a stand-alone mode and a microcontroller interface mode. The MSM6688L supports 3 V operation and controls recording/playback in microcontroller interface mode. In the stand-alone mode, recording/playback conditions can be selected by pins and the MSM6688/ 6688L can be controlled by a simple drive timing. In the microcontroller interface mode, recording/ playback can be controlled by commands from the microcontroller. In the microcontroller interface mode, the MSM6688/6688L is much more flexible than in the stand-alone mode. In addition, the MSM6688/6688L can form easily a recording and playback circuit with fixed messages by connecting serial registers and serial voice ROMs as external memories. Note: This data sheet explains a stand-alone mode and a microcontroller interface mode, separately.
Differences Between MSM6688 and MSM6688L
Parameter Operating voltage Control mode Full scale of A/D and D/A converters Voice detection level for voice triggered starting External-only register
MSM6688 3.5 to 5.5 V Standalone mode, Microcontroller interface mode 0 to VDD VDD , VDD , VDD 64 32 16 32M bits (max.) 4M bits (MSM6684B) 8M bits (MSM6685)
MSM6688L 2.7 to 3.6 V Microcontroller interface mode only 1 V to 3 V DD DD 4 4 VDD , VDD , VDD 128 64 32 4M bits (max.) 4M bits (MSM66V84B)
1/159
Semiconductor
MSM6688/6688L
CONTENTS
(2) MICROCONTROLLER INTERFACE MODE (for MSM6688 (5 V Version) FEATURES ........................................................ 3 and MSM6688L (3 V Version))
FEATURES ....................................................... 44 BLOCK DIAGRAM ......................................... 45 PIN CONFIGURATION ................................. 46 PIN DESCRIPTIONS ...................................... 47 ABSOLUTE MAXIMUM RATINGS (for MSM6688 (5 V Version)) ......................... 50 RECOMMENDED OPERATING CONDITIONS (for MSM6688 (5 V Version)) ....... 50 ELECTRICAL CHARACTERISTICS (for MSM6688 (5 V Version)) ......................... 50 ABSOLUTE MAXIMUM RATINGS (for MSM6688L (3 V Version)) ...................... 55 RECOMMENDED OPERATING CONDITIONS (for MSM6688L (3 V Version)) ...................... 55 ELECTRICAL CHARACTERISTICS (for MSM6688L (3 V Version)) ...................... 55 TIMING DIAGRAMS ..................................... 60 FUNCTIONAL DESCRIPTION .................... 79 Recording Time and Memory Capacity ................................................. 79 Connection of an Oscillator ...................... 79 Power Supply Wiring................................ 81 Analog Input Amplifier Circuit .............. 81 Connection of LPF Circuit Peripherals ............................................ 82 LPF Characteristics .................................... 82 Full Scale of A/D and D/A Converters . 83 Reset Function ............................................ 84 Power Down by the PDWN pin .............. 85 Record/Playback Control Modes ........... 86 Data Configuration of External Serial Registers ................................................ 88 Data Configuration of External Serial Voice ROMs ............................... 97 Command Description .............................. 99 Status Register .......................................... 108 Inputting the Commands ....................... 112 Changes of Record/Playback Conditions ........................................... 116 Setting and Confirming the Record/Playback Conditions ................ 117 Flex Record/Playback Method .............. 128 Direct Record/Playback Method ......... 135 ROM Playback by Inputting Address Code ..................................................... 138 Direct ROM Playback Method ............... 142 Stopping Record/ Playback Temporarily ....................... 144 Transferring Data to/from External Memories ............................................. 145 Record/playback by Inputting/ Outputting Voice Data via Data Bus ........ 151 Suppression of Pop Noise at AOUT Output ..................................... 155 APPLICATION CIRCUIT ............................ 157 2/159
(1) STAND-ALONE MODE (for MSM6688 (5 V Version))
BLOCK DIAGRAM .......................................... 4 PIN CONFIGURATION .................................. 5 PIN DESCRIPTIONS ....................................... 6 ABSOLUTE MAXIMUM RATINGS ............ 10 RECOMMENDED OPERATING CONDITIONS ................................................. 10 ELECTRICAL CHARACTERISTICS ........... 11 TIMING DIAGRAMS .................................... 15 FUNCTIONAL DESCRIPTION ................... 28 Recording Time and Memory Capacity ................................................ 28 Connection of an Oscillator ..................... 28 Power Supply Wiring............................... 29 Analog Input Amplifier Circuit ............. 29 Connection of LPF Circuit Peripherals ........................................... 30 LPF Characteristics ................................... 31 Reset Function ........................................... 32 Power Down by the PDWN pin ............. 33 Record/Playback Control Mode ............ 34 Deleting phrases ....................................... 36 Recording Method .................................... 37 Playback Method ...................................... 38 ROM Playback Method ............................ 39 Voice Triggered Starting .......................... 40 Method of Temporarily Stopping Record/ Playback by Pause Function .............. 42 APPLICATION CIRCUIT ............................. 43
Semiconductor
MSM6688/6688L
(1) STAND-ALONE MODE (for MSM6688 (5 V Version))
FEATURES
* 3-bit or 4-bit ADPCM * Built-in 12-bit AD converter * Built-in12-bit DA converter * Built-in microphone amplifier * Built-in low-pass filter Attenuation characteristics -40 dB/oct * External memories Serial registers, 32M bits maximum (for variable messages) 8M bit serial register (MSM6685) can be driven directly Serial voice ROMs, 4M bits maximum (for fixed messages) 1M bit serial voice ROM (MSM6595A) can be driven directly 2M bit serial voice ROM (MSM6596A) can be driven directly 3M bit serial voice ROM (MSM6597A) can be driven directly * Sampling frequency 4.0 kHz, 5.3 kHz, 6.4 kHz or 8.0 kHz (master clock frequency = 4.096 MHz) 8.0 kHz, 10.6 kHz, 12.8 kHz, or 16.0 kHz (master clock frequency = 8.192 MHz) * Number of phrases 63 phrases for variable messages 63 phrases for fixed messages * Maximum recording time (when external 32M bit RAM is connected) 34 minutes (for 16 kbps ADPCM) 23 minutes (for 24 kbps ADPCM) 17 minutes (for 32 kbps ADPCM) * Voice triggered starting function * Pause function * Master clock frequency: 4.096 MHz~8.192 MHz * Power supply voltage: Single 5 V power supply * Package: 56-pin plastic QFP (QFP56-P-910-0.65-2K) (Product name: MSM6688GS-2K)
3/159
Semiconductor
BLOCK DIAGRAM
DEL ST SP
PAUSE
CA0 CA1 CA2 CA3 CA4 CA5
TEST TEST
MCUM RESET PDWN PDMD VDS ROM SAM1 SAM2 MON NAR
Phrase Register
Test Circuit
Timing Controller Address Controller
Data I/O
DI/O DROM RSEL1 RSEL2 SADX SADY TAS RWCK WE CS1 CS2 CS3 CS4
Controller
Register
XT XT REC/PLAY 4B/3B MIN
OSC ADPCM Latch Analyzer/Synthesizer
- + 12bit ADC 12bit DAC SG Circuit DVDD DVDD' AVDD DGND AGND
MOUT LIN - +
LPF
MSM6688/6688L
4/159
LOUT
AMON FIN
AOUT FOUT
ADIN
SG SGC
Semiconductor
MSM6688/6688L
PIN CONFIGURATION (TOP VIEW)
REC/PLAY ST SP RESET NAR MON RWCK DVDD XT XT WE DROM DI/0 CS4 56 55 54 53 52 51 50 49 48 47 46 45 44 43
CA0 CA1 CA2 CA3 CA4 CA5 DEL PAUSE PDMD MCUM SAM1 SAM2 4B/3B VDS
1 2 3 4 5 6 7 8 9 10 11 12 13 14
15 16 17 18 19 20 21 22 23 24 25 26 27 28
42 41 40 39 38 37 36 35 34 33 32 31 30 29
CS3 CS2 CS1 SADX SADY TAS SAS PDWN TEST TEST RSEL2 RSEL1 DGND AGND
ROM ADIN FOUT AOUT FIN AMON DVDD' AVDD SG SGC LOUT LIN MOUT MIN
56-Pin Plastic QFP
5/159
Semiconductor
MSM6688/6688L
PIN DESCRIPTIONS
Pin 49 21 22 30 29 23 24 28 26 27 25 20 19 17 16 18 Symbol DVDD DVDD' AVDD DGND AGND SG SGC MIN LIN MOUT LOUT AMON FIN FOUT ADIN AOUT Type -- -- -- -- -- O I O Description Digital power supply pin. Insert a bypass capacitor of 0.1F or more between this pin and the DGND pin. Digital power supply pin Analog power supply pin. Insert a bypass capacitor of 0.1F or more between this pin and the AGND pin. Digital ground pin Analog ground pin Output pin for analog circuit reference voltage (signal ground) Inverting input pin of the built-in OP amplifier. Non-inverting input pin is internally connected to SG (signal ground). MOUT and LOUT are output pins of the built-in OP amplifier for MIN and LIN, respectively. This pin is connected to the LOUT pin in the recording mode and to O I O I O the DA converter output in the playback mode. Used to connect the built-in LPF input (FIN pin). Input pin of the built-in LPF. Output pin of the built-in LPF. Used to connect the AD converter input (ADIN pin). Input pin of the built-in 12-bit AD converter. Output pin of the built-in LPF. This pin outputs playback waveforms and used to connect an external speaker drive amplifier. (Serial Address Data). SADX is used to connect the SAD pin of each 39 38 SADX SADY O external serial register and the SADX pin of each external serial voice ROM. SADY is used to connect the SADY pin of each external serial voice ROM. Outputs of starting address of read/write. (Serial Address Strobe). Used to connect the SAS pin of external 36 SAS O serial register and the SASX and SASY pins of external serial voice ROM. Clock pin to write the serial address. (Transfer Address Strobe). Used to connect the TAS pin of each external serial register and serial voice ROM. 37 TAS O This pin outputs address strobe outputs to set the serial address data from the SADX and SADY pins into the internal address counter of each serial register and serial voice ROM. (Read/Write Clock). Used to connect the RWCK pin of each external 50 RWCK O serial register and the RDCK pin of each external serial voice ROM. This pin outputs a clock to read data from or write it into each external serial register. (Write Enable) Used to connect the WE pin of each external 46 WE O serial register. This pin outputs WE signal to select either read or write mode.
6/159
Semiconductor
MSM6688/6688L
Pin 44
Symbol DI/O
Type I/O
Description (Data I/O). Used to connect the DIN and DOUT pins of serial register. This pin outputs the data to be written into the serial register or inputs the data read from the serial registers. (Data ROM). Used to connect the DOUT pin of each external serial voic ROM. (Chip Select). Used to connect the CS pin of serial register and the CS (CS1, CS2, CS3) pins of serial voice ROM.
45 40 41 42 43
DROM CS1 CS2 CS3 CS4
I
O
(Register Select). These are used to select the number of external serial registers. 31 32 RSEL1 RSEL2 I RSEL2 RSEL1 Number of serial registers L L 1 L H 2 H L 3 H H 4
This pin is used to select either the stand-alone mode or the 10 MCUM I microcontroller interface mode. Low level: Stand-alone mode High level: Microcontroller interface mode. 53 RESET I A high input level to this pin causes the MSM6688 to be initialized and to go into the power down state. (Power Down). When a low level is input to this pin, the MSM6688 goes to the power down state. Unlike the RESET pin, this pin does not force to reset the MSM6688. When an Low level is applied to 35 PDWN I this PDWN pin during recording operation, the MSM6688 is halted, and will be maintained in the power down state while PDWN is low. After this pin is restored to a high level, postprocessing for recording will be performed. Used to connect an oscillator. When an external clock is used, 47 XT I input the clock through this pin. At the power down state, this pin must be set to the ground level. 48 34 33 XT TEST TEST O I Used to connect an oscillator, when an external clock is used, this pin must be left open. Used to test the MSM6688. Input a low level to the TEST pin and a high level to the TEST pin.
7/159
Semiconductor
MSM6688/6688L
Pin 15
Symbol ROM
Type I playback operation.
Description When low, selects the record/playback operation. When high, selects the ROM Used to select the recording mode or the playback mode. This pin is invalid
56
REC/PLAY
I
during the ROM playback operation. When low, selects the playback mode. When high, selects the recording mode. When a low-level pulse is applied to this pin, the record/playback or ROM playback is started. When a low-level pulse is applied to this pin, the record/playback or ROM playback is stopped. When a low-level pulse is applied to this pin, the record/playback or ROM operation is stopped temporarily. When a low level pulse is applied to this pin, all phase deletion or specified phrase deletion can be performed according to the setting of pins CA0 through CA5,
55 54 8
ST SP PAUSE
I I I
7
DEL
I
ch00: All phase deletion ch01 to ch3F: Specified phrase deletion After powering up, be sure to input RESET signal and then to delete all phrases. After completing this procedure, start the record/playback operation. Input pins used to specify desired phases. A total of 63 phrases can be specified independently for the record/playback operation and the ROM playback operation. CA5 CA4 CA3 CA2 CA1 CA0 L L L L . . . H H L L L . . . H H L L L . . . H H L L H . . . H H L H L . . . L H Phrase No. ch00 ch01 ch02 . . . ch3E ch3F A total of 63 phrases can be used both for record/playback and ROM playback operation. Remarks All phrase deletion
1-6
CA0-CA5
I
L L . . . H H
Input pin used to select one of two types of ADPCM bit length. 13 4B/3B I When low, selects the 3-bit ADPCM. When high, selects the 4-bit ADPCM.
8/159
Semiconductor
MSM6688/6688L
Pin
Symbol
Type
Description Used to select one of the following four types of sampling frequency. The relationship between the master clock frequency (fosc) and the sampling frequency (fsamp) is shown below. Values in parentheses denote the sampling frequencies for fosc = 4.096 MHz.
11 12
SAM1 SAM2
I SAM2 SAM1 fsamp L L
fosc 1024 (4.0kHz)
L H
fosc 768 (5.3kHz)
H L
fosc 640 (6.4kHz)
H H
fosc 512 (8.0kHz)
This input pin is used to select the condition for transition to the power-down state. Low level: The MSM6688 automatically goes to the power-down state, excepting the time the record/playback operation is being performed. High level: The MSM6688 automatically goes to the standby 9 PDMD I state, instead of the power-down state, excepting the time the record/playback operation is being performed. In this case, the MSM6688 can be placed in the power-down state by setting the RESET pin to a high level. If it is desired to use the built-in LPF for an external circuit, this standby mode must be selected by applying a high level to the PDMD pin. Used to select the voice triggered starting that starts recording 14 VDS I when the voice input exceeds the preset amplitude. A high input level on this pin enables the voice triggered starting circuit. 51 MON O Outputs a high level while the record/playback operation is being performed. Output pin to indicate the enable or disable state of the operation 52 NAR O for specifying a phrase. When continuous ROM playback is performed, the next phrase can be specified after verifying that the NAR pin becomes high.
9/159
Semiconductor
MSM6688/6688L
ABSOLUTE MAXIMUM RATINGS (for MSM6688 (5 V Version))
Parameter Power supply voltage Input Voltage Storage temperature Symbol VDD VIN TSTG Condition Ta=25C Ta=25C -- Rating -0.3 to +7.0 -0.3 to VDD+0.3 -55 to +150 Unit V V C
RECOMMENDED OPERATING CONDITIONS (for MSM6688 (5 V Version))
Parameter Power supply voltage Operating temperature Master clock frequency Symbol VDD Top fosc Condition DGND=AGND=0V -- -- Range 3.5 to 5.5 (Note 1) -40 to +85 4.0 to 8.192 Unit V C MHz
Note: 1. Recording and playback should be performed at a power supply voltage of 4.5 to 5.5V. For other operations such as backup for a serial register, the IC operates at 3.5 to 5.5V.
10/159
Semiconductor
MSM6688/6688L
ELECTRICAL CHARACTERISTICS (for MSM6688 (5 V Version))
DC Characteristics
Parameter High input voltage Low input voltage High output voltage Low output voltage
High input current (Note 1) High input current (Note 2) Low input current (Note 3) Low input current (Note 2) Low input current (Note 4) Operating current consumption Standby current consumption
DVDD=DVDD'=AVDD=4.5 to 5.5V (Note 5) DGND=AGND=0V Ta=-40 to +85C Symbol VIH VIL VOH VOL IIH1 IIH2 IIL1 IIL2 IIL3 IDD Condition -- -- IOH = -40mA IOL = 2mA VIH = VDD VIH = VDD VIL = GND VIL = GND VIL = GND fosc = 8 MHz, no load
During power down, no load Ta=-40 to +70C During power down, no load Ta=-40 to +85C
Min.
0.8VDD
Typ. -- -- -- -- -- -- -- -- -- 15 -- --
Max. --
0.2VDD
Unit V V V V mA mA mA mA mA mA mA mA
--
VDD-0.3
-- 0.45 10 20 -- -- -20 30 10 50
-- -- -- -10 -20 -400 -- -- --
IDDS
Note: 1. 2. 3. 4.
Applies to all input pins excluding the XT pin. Applies to the XT pin. Applies to the all input pins without pull-up resistors, excluding the XT pin. Applies to the input pins (ST, SP, PAUSE, DEL) with pull-up resistors, excluding the XT pin.
11/159
Semiconductor Analog Characteristics
Parameter DA output relative error
FIN admissible input voltage range
MSM6688/6688L
DVDD=DVDD'=AVDD=4.5 to 5.5V DGND=AGND=0V Ta=-40 to +85C Symbol |VDAE| VFIN RFIN VADIN RADIN GOP RINA ROUTA RAOUT RFOUT Condition no load -- -- -- -- fIN=0-4kHz -- -- -- -- Min. -- 1 1 0 1 40 1 200 50 50 Typ. -- -- -- -- -- -- -- -- -- -- Max. 10 VDD-1 -- VDD -- -- -- -- -- -- Unit mV V MW V MW dB MW kW kW kW
FIN input impedance ADIN admissible input voltage range ADIN input impedance Op-amp open loop gain Op-amp input impedance Op-amp load resistance AOUT load resistance FOUT load resistance
12/159
Semiconductor AC Characteristics
MSM6688/6688L
DVDD=DVDD'=AVDD=4.5 to 5.5V DGND=AGND=0V Ta=-40 to +85C fosc=4.096MHz fSAMP=8.0kHz Parameter
Symbol
Min. 1 -- 500 500 125 0.25 40 40 40 40 550 70 -- 1 -- -- 0.75 -- -- -- -- -- -- -- --
Typ. -- 1 -- -- -- -- -- -- -- -- -- -- -- -- 1 -- -- -- -- -- -- -- -- -- --
Max. -- -- -- -- 500 -- -- -- -- -- -- -- 270 -- -- 40 1 50 20 1 80 2 2 50 80
Unit ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms
RESET pulse width RESET execution time PDWN low level time PDWN high level time Oscillating time after input of PDWN BUSY time after release of PDWN ST pulse width SP pulse width PAUSE pulse width DEL pulse width Time required to delete all phrases Time required to delete a specified phrase Time from input of DEL pulse to CSI fall Hold time of CA0~CA5, REC/PLAY after MON rise Address control time at the start of record/playback Time from input of ST pulse to NAR fall * (Note 1)* * (Note 1)* * (Note 1)* (Note 2)** ** ** (Note 2)* * * (Note 2)*
tRST tREX tPDL tPDH tPX tBPD tST tSP tPSE tDEL tWBLA tWBL1 tDCS tCAH tAD1 tSTN tMID tTMH1 tTMH2 tTMH3 tPMH1 tPMH2 tPMH3 tSTVH tSPVH
(Note 2)*
Unvoiced time between phrases during repeated playback * Record Time from input of ST pulse to MON rise Playback * *
* ROM playback POMD=H Time from input of SP pulse to MON fall Record Playback * *
ROM playback*
Time from input of ST pulse to standby for voice Time from input of SP pulse during standby for voice to release of standby for voice
* *
Items with * are proportional to the period of master clock frequency fosc. Items with ** are proportional to the period of the master clock frequency fosc, and are also proportional to the sampling frequency fSAMP during record/playback. Note: 1. The oscillation start stabilization time is added to tREX and tBPD. The oscillation start stabilization time is several tens of milliseconds for crystals and several hundreds of microseconds for ceramic oscillators. Note: 2. The oscillation start stabilization time is added if PDMD pin = "L". The oscillation start stabilization time is several tens of milliseconds for crystals and several hundreds of microseconds for ceramic oscillators.
13/159
Semiconductor
MSM6688/6688L
DVDD=DVDD'=AVDD=4.5 to 5.5V DGND=AGND=0V Ta=-40 to +85C fosc=4.096MHz fSAMP=8.0kHz Parameter
Symbol
Min. -- -- -- -- -- -- -- -- -- -- -- --
Typ. -- -- -- -- -- -- -- -- 64 256 -- --
Max. 120 150 150 80 260 260 120 80 -- -- 1 1
Unit ms ms ms ms ms ms ms ms ms ms ms ms
Time from input of ST pulse to MON rise
Record Playback
* *
tTML1 tTML2 tTML3 tPML1 tPML2 tPML3 tSTVL tSPVL tAOR tAOF tPP tPST
ROM playback *
Time from input of SP pulse to MON fall PDMD=L
Record Playback
* *
ROM playback *
Time from input of ST pulse to standby for voice Time from input of SP pulse during standby for voice to release of standby for voice Standby transition time at start of playback Standby transition time at end of playback Time from input of PAUSE pulse to pause Time from input of ST pulse during pause to restart of record/playback
* * * * ** **
Items with * are proportional to the period of master clock frequency fosc. Items with ** are proportional to the period of the master clock frequency fosc, and are also proportional to the sampling frequency fSAMP during record/playback.
14/159
Semiconductor
MSM6688/6688L
TIMING DIAGRAMS
RESET FUNCTION
VDD tRST
RESET (I) tREX
Undefined
Power down
Reset operation in progress
Standby for record/playback
Power Down by PDWN Pin
tPDL PDWN (I) tPDH
tPX Note 1 XT (I) XT (O) Oscillation in progress Oscillation in progress tBPD
Power down
Postprocessing
Standby
Note: 1. When an external clock is used, continue to apply the clock input to the XT terminal during tPX after the PDWN pin is set to a low level.
15/159
,,
Semiconductor MSM6688/6688L Timing for Deletion of All Phrases
CA0-CA5 (I) DEL (I) tDEL tWBLA tDCS CSI (O) Standby Deletion of all phrases Standby

Timing for Deletion of a Specified Phrase
CA0-CA5 (I) DEL (I) tDEL tWBL1 tDCS CSI (O) Standby
Deletion of a specified phrase
Standby
16/159

Semiconductor Recording Timing (PDMD Pin = High)
RESET ROM (I) (I) (I) (I) (I) (I) (I) (I) SAM1, SAM2 4B/3B CA0-CA5 Bit rate designation Phase designation REC/PLAY ST tST tCAH tSP SP XT XT (I) (O) Oscillation in progress tTMH1 tPMH1 MON NAR (O) (O) tSTN tAD1 Power down Standby Address control Recording in progress Standby Power down
MSM6688/6688L
17/159
Timing for Voice Triggered Recording (PDMD Pin = High)
RESET ROM VDS (I)
SAM1, SAM2 4B/3B CA0-CA5
REC/PLAY ST SP XT XT
MON NAR
,,, ,
Semiconductor
(I) (I) (I) (I) (I) (I) (I) (I) Bit rate designation Phrase designation tST tCAH tSP tSP (I) (O) tSTVH Oscillation in progress tSPVH tPMH1 (O) (O) tSTN tAD1 Power down Standby Standby for voice Voice detected Address control Recording Standby Power down When STOP pulse is input during standby for voice, the MSM6688 goes to the recording standby state.
MSM6688/6688L
18/159
Playback Timing (PDMD Pin = High)
RESET RO (I)
SAM1, SAM2 4B/3B CA0-CA5
REC/PLAY ST SP XT XT
MON NAR

Semiconductor
(I) (I) (I) (I) (I) (I) (I) Bit rate designation Phrase designation tST tCAH tSP (I) (O) Oscillation in progress tTMH2 tPMH2 (O) tSTN (O) 1/2 VDD level 1/2 VDD level (O) GND level Power down Standby tAD1 Address control Playback Standby GND level Power down
AOUT
MSM6688/6688L
19/159
ROM Playback Timing (PDMD Pin = High)
RESET ROM (I)
CA0-CA5
ST SP XT XT
MON NAR
AOUT

Semiconductor
(I) (I) Phrase designation tST tCAH (I) tSP (I) (I) (O) Oscillation in progress tTMH3 tPMH3 (O) (O) tSTN 1/2 VDD level 1/2 VDD level (O) GND level tAD1 Standby Address control Playback Standby GND level Power down Power down
MSM6688/6688L
20/159
Continuous ROM Playback Timing (PDMD Pin = High)
RESET ROM (I)
CA0-CA5
ST SP XT XT
MON NAR
AOUT

Semiconductor
(I) 2nd phrase designation (I) 1st phrase designation (I) tSP (I) (I) (O) Oscillation in progress tTMH3 tPMH3 (O) tSTN (O) 1/2 VDD level 1/2 VDD level (O) GND level tAD1 tMID GND level Power down Standby Address control 1st phrase playback
Unvoiced
2nd phrase playback
Standby
Power down
MSM6688/6688L
21/159
Recording Timing (PDMD Pin = Low)
RESET ROM (I) (I) (I) (I) (I) (I) (I) (I)
SAM1, SAM2 4B/3B CA0-CA5
REC/PLAY ST
SP XT XT
MON NAR

Semiconductor
Bit rate specifying operation Phrase specifying operation tST tCAH tSP (I) (O) Oscillation in progress tTML1 tPML1 (O) (O) tSTN tAD1 Power down Analog stable time Address control Recording in progress Power down
MSM6688/6688L
22/159
Semiconductor
Timing for Voice Triggered Recording (PDMD Pin = Low)
RESET ROM VDS (I)
SAM1, SAM2 4B/3B CA0-CA5
REC/PLAY ST
SP XT XT
MON NAR

(I) (I) (I) (I) (I) (I) (I) (I) Bit rate designation Phrase designation tST tCAH tSP tSP (I) (O) tSTVL Oscillation in progress tSPVL tPML1 (O) (O) tSTN tAD1 Power down Analog stable time Standby for voice Voice detected Address control Recording Power down When STOP pulse is input during standby for voice, the MSM6688 goes to the recording standby state.
MSM6688/6688L
23/159
Semiconductor
Playback Timing (PDMD Pin = Low)
RESET ROM (I)
SAM1, SAM2 4B/3B CA0-CA5
REC/PLAY ST SP XT XT
MON NAR
AOUT

(I) (I) (I) (I) (I) (I) (I) Bit rate designation Phrase designation tST tCAH tSP (I) (O) Oscillation in progress tTML2 tPML2 (O) tSTN (O) 1/2 VDD level tAD1 (O) GND level tAOR tAOF GND level Power down Analog stable time Address control Standby transition Playback Standby transition Power down
MSM6688/6688L
24/159
ROM Playback Timing (PDMD Pin = Low)
RESET ROM (I)
CA0-CA5
ST SP XT XT
MON NAR
AOUT

Semiconductor
(I) (I) Phrase designation tST tCAH (I) tSP (I) (I) (O) Oscillation in progress tTML3 tPML3 (O) tSTN (O) 1/2 VDD level tAD1 (O) GND level tAOR tAOF GND level Power down Analog stable time Address control Standby transition Playback Power down Standby transition
MSM6688/6688L
25/159
Semiconductor
Continuous ROM Playback Timing (PDMD Pin = Low)
RESET ROM (I)
CA0-CA5
ST SP XT XT
MON NAR
AOUT

(I) 2nd phrase designation (I) 1st phrase designation (I) tSP (I) (I) (O) Oscillation in progress tTML3 tPML3 (O) tSTN (O) 1/2 VDD level tAD1 (O) GND level tAOR tMID tAOF GND level Power down Analog stable time 1st phrase playback Standby transition Address control Unvoiced 2nd phrase playback Standby transition Power down
MSM6688/6688L
26/159
Semiconductor
Record/Playback Pause Timing
tST ST SP PAUSE (I) Start pulse tST Restart pulse tSP (I) tPSE (I) tPP MON (O) tPST tPP Note 1 tPSE
Standby
Record/Playback
Pause
Record/Playback
Pause
Standby
Note 1: This time interval varies depending on the state of PDMD pin and the record/playback mode and is one of tPMH1, tPMH2, tPMH3, tPML1, tPML2 and tPML3.
MSM6688/6688L
27/159
Semiconductor
MSM6688/6688L
FUNCTIONAL DESCRIPTION
Recording Time and Memory Capacity The recording time depends on the memory capacity of the external serial registers, sampling frequency, and ADPCM bit length, and is given by 1.024 memory capacity (K bits) Recording time = sampling frequency (kHz) bit length (bits)
4096
(seconds)
For example, if the sampling frequency is 768 kHz (= 5.333 kHz), ADPCM bit length is 3 bits, and four 8M bit serial registers are used, the recording time can be obtained as follows. Recording time = 1.024 (8192 4 - 64) 5.333 3 = 34 minutes 53 seconds = 2093 seconds
In the above equation, the memory capacity is obtained by subtracting the memory capacity (64 Kbits) for the channel index area from the total memory capacity. Connection of an Oscillator Connect a ceramic oscillator or a crystal oscillator to XT and XT pins as shown below. The optimal load capacities when connecting ceramic oscillators from MURATA MFG. and KYOCERA CORPORATION are shown below for reference.
MSM6688 XT C1 XT C2
Ceramic oscillator Type CSA4.00MG CST4.00MGW MURATA CSA6.00MG MFG. CST6.00MGW CSA8.00MTZ CST8.00MTW KBR-4.0MSA KBR-4.0MKS PBRC4.00A PBRC4.00B KYOCERA KBR-6.0MSA CORPOKBR-6.0MKS RATION PBRC6.00A PBRC6.00B KBR-8.0M PBRC8.00A PBRC8.00B 8.0 (with capacitor) (with capacitor) 4.0 (with capacitor) (with capacitor) Freq(MHz) 4.0 6.0 8.0
Optimal load capacity C1(pF) C2(pF)
(with capacitor)
30
30
33 6.0
33
28/159
Semiconductor Power Supply Wiring
MSM6688/6688L
As shown in the following diagram, supply the power to this MSM6688 from the same power source, but separate the power supply wiring to the analog portion from that to the logic position.
+5V
DVDD' DVDD
AVDD
MSM6688
DGND AGND
The following connections are not permitted.
Analog power supply Digital power supply DVDD DVDD' AVDD
Analog Input Amplifier Circuit
This MSM6688 has two built-in operational amplifiers for amplifying the microphone output. Each OP amplifier is provided with the inverting input pin and output pin. The analog circuit reference voltage SG (signal ground) is connected internally to the non-inverting input of each OP amplifier.
For amplification, form an inverting amplifier circuit and adjust the amplification ratio by using external resistors as shown below.
VIN VMO VLO
- +
During the time the recording operation is performed, the output VLO of OP amp 2 is connected to the input FIN of the built-in LPF. The FIN allowable input voltage (VFIN) ranges from 1V to (VDD - 1)V. Therefore, the amplification ratio must be adjusted so that the VLO amplitude can be within the FIN allowable input voltage range. For example, if VDD = 5V, VLO becomes 3 Vp-p max. If VLO exceeds the FIN allowable input voltage range, the output of the LPF will be a clipped waveform.
,,
R1 R2 R3 R4 VDD VLO VDD-1 MIN MOUT LIN LOUT 1/2VDD 1
- + - +

+5V DVDD DVDD' AVDD
OP amp 2
OP amp 1
SG
GND
VLO=
R4 R3
VMO=
R2 * R4 R1 * R3
VIN(V)
The load resistance ROUTA of the OP amp is 200 kW minimum, so that the feedback resistors R2 and R4 of the inverting amplifier circuit must be 200 kW or more. 29/159
Semiconductor Connection of LPF Circuit Peripherals
MSM6688/6688L
The AMON pin is connected internally to the output of the amplifier circuit (LOUT pin) in the recording mode and to the output of the built-in DA converter in the playback mode. Therefore, connect the AMON pin directly to the input (FIN pin) of the built-in LPF. Both the FOUT and AOUT pins are the output pins of the built-in LPF. Connect the FOUT pin to the input (ADIN pin) of the built-in AD converter and connect the AOUT pin to an external speaker through an external speaker drive amplifier. In the MSM6688, the connection of each of the FOUT and AOUT pins is changed to one of the output of the LPF, GND (ground) level, and SG (signal ground) level, depending on the operation status as shown below. When PDMD pin = high level:
At power down (RESET pin = H) GND level GND level During operation (RESET pin = L) Recording mode LPF output
(recording waveform)
Analog pin FOUT pin AOUT pin
Playback mode LPF output LPF output
(playback waveform)
SG level
When PDMD pin = L:
During operation Recording mode FOUT pin AOUT pin GND level GND level LPF output
(recording waveform)
Analog pin
At power down
Playback mode LPF output LPF output
(playback waveform)
GND level
30/159
Semiconductor When PDMD pin = H:
MSM6688/6688L
Speaker drive amplifier
LIN
- +
LOUT AMON
FIN
AOUT
FOUT
ADIN
Record mode Playback mode Playback mode
SG
LPF
- +
ADC Power down GND
DAC
Record mode SG
- +
Power down GND Note: This diagram shows the state of each switch during the recording operation.
When PDMD = L:
Speaker drive amplifier
LIN
- +
LOUT AMON
FIN
AOUT
FOUT
ADIN
Record mode Playback mode
-
Playback ADC
SG
LPF
+
DAC
- +
Power down GND Note: This diagram shows the state of each switch during the recording operation.
LPF Characteristics This IC contains a fourth-order switched-capacitor LPF. The attenuation characteristic of this LPF is -40 dB/ oct. The cut-off frequency and frequency characteristics of this LPF vary in proportion to the sampling frequency (fsamp). The cut-off frequency is preset to 0.4 times the sampling frequency. The following graph depicts the frequency characteristics of the LPF at fsamp = 8 kHz.
[dB]
20 10 0 -10 -20 -30 -40 -50 -60 -70 -80 100 1K 10K [Hz]
LPF Frequency Characteristics (fsamp = 8.0 kHz)
31/159
Semiconductor Reset Function
MSM6688/6688L
By applying a high level to the RESET pin, the MSM6688 stops frequency oscillation to minimize current consumption and goes to the power-down state. At the same time, the control circuit is reset and initialized. If a high level is applied to the RESET pin during record/playback operation , the MSM6688 is set to the power-down state and initialized state, so that voice data becomes undefined. The following shows the power-down state of the MSM6688. (1) Frequency oscillation is stopped and all operations of the internal circuit are halted. (2) The current consumption is minimized. When an external clock is used, apply a ground (GND) level to the XT pin at power down so that no current can flow into the oscillation circuit. (3) CS1 - CS4 pins are set to a high level to minimize the current consumption of external serial registers and serial voice ROMs. (4) Pull-up resistors are removed from the input control ST, SP, PAUSE, and DEL pins. (5) The state of the output pins are as follows.
Pin name SAS, TAS, CS1-CS4, RWCK SADX, WE, NAR SADY MON AOUT, FOUT Power down mode with RESET="H" "H" level "H" level "L" level "L" level GND level Power down mode with PDWN="L" "H" level "H" level or "L" level "H" level or "L" level "L" level GND level
After powering up the MSM6688, be sure to initialize it by applying a high level to the RESET pin.
32/159
Semiconductor Power Down by the PDWN pin
MSM6688/6688L
By applying a low level to the PDWN pin, the MSM6688 may be set to the power-down state, in which the oscillation and all operations of internal circuits are halted. Unlike the reset operation by the RESET input, the control circuit will not be initialized by this power-down operation. The power-down operation will not affect the data in the internal control circuit and external serial registers. Therefore, this power-down operation is useful when the battery backup takes place in case of power failure. When PDWN becomes low during one of the following operations, their respective operations will be performed after the power-down state is released (PDWN = H). (1) When the MSM6688 is powered down (PDWN = L) during the record/plaback operation: The record/playback operation is stopped. After the release of the power-down state, the postprocessing will be performed. (2) When the MSM6688 is powered down (PDWN = L) during the phrase deleting operation: The phrase deleting operation is temporarily stopped and will be restarted after the release of the power-down state. (3) When the MSM6688 is powered down (PDWN = L) during the time the transition of the AOUT output to a DC level is in progress: This transition operation is temporalily stopped and will be continued after the release of the power-down state.
33/159
Semiconductor Record/Playback Control Mode
MSM6688/6688L
Either record/playback mode or ROM playback mode can be selected through the ROM pin as described below.
ROM pin L H Record/playback control mode Record/playback ROM playback
1. Record/playback The recorded voice data is stored in serial registers. The recording area is indirectly allocated to each phrase by setting the phase specifying pins CA0 to CA5 (63 phrases). The recording area for each phrase is managed by the MSM6688 as described below. The total memory capacity of the connected external serial registers is equally divided into 256 memory blocks. When recording is performed, voice data is written into the memory blocks unused by other phrases. When a specified phase is deleted, the blocks used by this phrase become unused blocks. When re-recording is performed, voice data is written in the memory area consisting of the memory blocks used by this phrase and the unused memory blocks. The memory capacity of one memory block and the number of initially available memory blocks (recording time) vary according to the total memory capacity of the connected serial registers.
RSEL2 RSEL1 Total memory capacity Memory capacity of one block 16kbps Recording time of one block 24kbps 32kbps Number of initially available blocks L L 8M bits 32K bits 2.0 seconds 1.4 seconds 1.0 second 254 L H 16M bits 64K bits 4.1 seconds 2.7 seconds 2.0 seconds 255 H L 24M bits 128K bits 8.2 seconds 5.5 seconds 4.1 seconds 191 H H 32M bits 128K bits 8.2 seconds 5.5 seconds 4.1 seconds 255
34/159
Semiconductor 2. ROM playback
MSM6688/6688L
For playback of the voice data stored in the connected serial voice ROM, the playback area is allocated indirectly to each fixed message phrase by setting phrase specifying pins CA0 to CA5 (63 phases). The start address, stop address, sampling frequency, and ADPCM bit length which specify the playback area for each phase are written in the index area of the serial voice ROM. When the playback operation is started, the MSM6688 fetches these data from the index area.
35/159
Semiconductor Deleting phrases 1. Deleting all phrases
MSM6688/6688L
All 63 phrases ch01 through ch3F can be deleted by specifying ch00 and applying a low pulse to the DEL pin. When all phrases are deleted, all phrases ch01- ch3F (63 phrases) go to the unrecorded status and, at the same time, the initial data for address control is written in the serial registers. Therefore, whenever the MSM6688 is powered up, delete all phrases after applying a high level to the RESET pin. 2. Deleting a specified phrase By specifying one of ch01 - ch3F phrase and applying a low level to the DEL pin, the specified phrase can be deleted and put to the unrecorded state. The blocks for the deleted phrases are added to available unused blocks (available recording time).
36/159
Semiconductor Recording Method
MSM6688/6688L
Whenever the MSM6688 is powered up, be sure to delete all phrases after applying a high level to the RESET pin. Then, start the recording operation. (1) Set recording conditions at the relevant pins. ROM pin: REC/PLAY pin: VOS pin: Low level High level Selection of voice triggered starting (high level enables voice activation and low level disables voice activation.) SAM1 and SAM2 pins: Select the sampling frequency. 4B /3B pin: Select the ADPCM bit length. CA0 - CA5 pins: Specify one of 63 phrases ch01 - ch3F.
(2) To start recording, apply a low pulse to the ST pin. To stop recording in progress, apply a low pulse to the SP pin. When recording continues to the end of the memory capacity, recording is automatically stopped. In case of re-recording, voice data will be written in the memory block used by the specified phrase and unused memory blocks. Therefore, the voice data is overwritten on the previously recorded contents. The MON pin outputs a high level during recording.
Start pulse ST SP MON (I) (I) (O)
Invalid
Stop pulse
Recording in progress (stopped in the middle)
Available memory capacity Start pulse ST MON (I) (O) Recording in progress Available memory capacity Recording is stopped automatically.
37/159
Semiconductor Playback Method (1) Set playback conditions at the relevant pins. ROM pin: REC/PLAY pin: SAM1 and SAM2 pins: 4B/3B pin: CA0-CA5 pins:
MSM6688/6688L
Low level Low level Select the sampling frequency. Specify the ADPCM bit length selected for recording. Specify one of 63 phases ch01-ch3F.
(2) To start playback, apply a low pulse to the ST pin. When playback for the duration of the recorded data is finished, the playback is stopped automatically. To stop playback in progress, apply a low pulse to the SP pin. The MON pin outputs a high level during playback.
Start pulse ST (I)
MON (O) Playback in progress (same as the recorded time) Playback is stopped automatically Start pulse ST SP (I) (I) Stop pulse
MON (O) Playback in progress (stopped in the middle) Recorded time
By maintaining the ST pin at a low level, repeated playback is possible.
ST SP (I) (I) (Stop pulse)
MON (O) 1st playback 2nd playback 3rd playback
38/159
Semiconductor
MSM6688/6688L
ROM Playback Method (1) Apply a high level to the ROM pin. (2) Specify one of 63 phrases ch01 - ch3F by setting the CA0 - CA5 pins. (3) To start playback, apply a low pulse to the ST pin. To stop playback in progress, apply a low pulse to the SP pin.
39/159
Semiconductor Voice Triggered Starting
MSM6688/6688L
This MSM6688 has the voice triggered starting function that starts recording when the level of voice input exceeds a preset amplitude. Using the voice activated function, the unvoiced part prior to voice detection will not be recorded, so that the memory capacity can be utilized efficiently. The unvoiced parts in the middle of recording are not eliminated. In the voice triggered starting mode, recording is started when a voice input exceeds the preset thresholds. Therefore, a consonant part with a low level may not be recorded.
Voice input level (ADIN pin) 1/2VDD
Upper threshold +Vvds -Vvds Lower threshold
Identified as voice Start signal input
VDS pin L H
Voice triggered starting conditions Voice triggered starting disabled Voice triggered starting enabled Voice detection threshold Vvds = VDD/32 (160 mV) The value in parentheses is for VDD = 5.12V.
40/159
Semiconductor
MSM6688/6688L
When a low level is applied to the ST pin, the MSM6688 goes to the standby state for voice. When detecting a voiced input, it starts recording and the MON pin outputs a high level.
Start pulse ST SP (I) Stop pulse (I)
MON (O) Standby for voice Recording in progress
Determined as voice
When a low level is applied to the SP pin during standby state for voice, the MSM6688 finishes the standby state for voice and goes to the standby state for recording.
Start pulse ST SP (I) Stop pulse (I) Standby for recording Standby for voice Standby for recording
41/159
Semiconductor Method of Temporarily Stopping Record/Playback by Pause Function
MSM6688/6688L
By applying a low pulse to the PAUSE pin during record/playback, record/playback operation can be stopped temporarily. To resume record/playback, apply a low pulse to the ST pin. To stop record/playback, apply a low pulse to the SP pin.
Start pulse ST PAUSE (I) (I) Pause Pause pulse Start pulse
Resume Start pulse ST SP PAUSE (I) (I) (I) Pause Pause pulse Stop pulse
Record/Playback finished
When record/playback is resumed after temporary stop, the voice triggered starting circuit is not operated and recording is started when a start low pulse is applied to SP pin.
42/159
DVDD DVDD' VCC SAD SAS
SADY
AVDD VCC SADX SASX SADY SASY TAS RDCK
REC/PLAY
SADX
DEL SADX SAS
SADX SAS
MSM6685
MSM6685
MSM6685
ST
SAS
Semiconductor
MSM6596A-XXX
SP TAS TAS RWCK
RWCK
SADY TAS
APPLICATION CIRCUIT
PAUSE WE DI/O DROM DOUT TEST
CS1 CS2 VSS
TAS
2M SERIAL VOICE ROM MSM6596A-XXX
8M SERIAL REGISTER MSM6685
RWCK WE DI/O
DROM
CS VSS
RESET PDWN RSEL1 RSEL2 SAM1 SAM2 4B/3B PDMD MCUM VDS
RWCK WE DIN DOUT TEST TEST NC TEST
CS1
CS2
CS3
SW Phrase selector
CA0 CA1 CA2 CA3 CA4 CA5
CS4
MIN
MOUT
ADPCM SOLID-STATE RECORDER IC MSM6688
Circuit Diagram 1:
ROM
XT
LIN
4.096 MHz
XT
Application circuit in standalone mode with 8M bit serial registers and 2M bit serial voice ROMs
MON NAR
LOUT AMON FIN FOUT ADIN AOUT
Speaker drive amplifier
SGC
The circuit diagram 1 shows an application circuit example where the MSM6688 is used in the standalone mode and four 8M bit serial registers and two 2M bit serial voice ROMs also connected.

+
MSM6688/6688L
43/159
DGND AGND
SG
+
Semiconductor
MSM6688/6688L
(2) MICROCONTROLLER INTERFACE MODE (for MSM6688 (5 V Version) and MSM6688L (3 V Version))
FEATURES
* 3-bit or 4-bit ADPCM * Built-in 12-bit AD converter * Built-in12-bit DA converter * Built-in microphone amplifier * Built-in low-pass filter Attenuation characteristics -40 dB/oct * External only registers (for variable messages) MSM6688 (5 V version) - Serial registers, 32M bits maximum One 4M bit serial register (MSM6684B) can be driven directly Up to four 8M bit serial register (MSM6685) can be driven directly MSM6688L (3 V version) - Serial registers, 4M bits maximum One 4M bit serial register (MSM66V84B) can be driven directly * External only ROMs (for fixed messages) - Serial voice ROMs, 4M bits maximum 1M bit serial voice ROM (MSM6595A) can be driven directly 2M bit serial voice ROM (MSM6596A) can be driven directly 3M bit serial voice ROM (MSM6597A) can be driven directly * Sampling frequency 4.0 kHz, 5.3 kHz, 6.4 kHz or 8.0 kHz (master clock frequency = 4.096 MHz) 8.0 kHz, 10.6 kHz, 12.8 kHz or 16.0 kHz (master clock frequency = 8.192 MHz) * Number of phrases 63 phrases for variable messages 63 phrases for fixed messages * Maximum recording time (when external 32M bit RAM is connected) 34 minutes (for 16 kbps ADPCM) 23 minutes (for 24 kbps ADPCM) 17 minutes (for 32 kbps ADPCM) * Voice triggered starting function * Pause function * Master clock frequency: 4.096 MHz to 8.192 MHz * Power supply voltage MSM6688: Single 5 Vpower supply MSM6688L: Single 3 V power supply * Package options: 56-pin plastic QFP (QFP56-P-910-0.65-2K) (Product name: MSM6688GS-2K) 56-pin plastic QFP (QFP56-P-910-0.65-2K) (Product name: MSM6688LGS-2K) 64-pin plastic TQFP (TQFP64-P-1010-0.50-K) (Product name: MSM6688LTS-K)
44/159
NAR VPM RPM BUSY
D3 D2 D1 D0
WR RD CE CE
Semiconductor
BLOCK DIAGRAM
TEST TEST
Test Circuit
Status Register
MCU I/F
Data I/O
DI/O DROM
MCUM RESET PDWN ACON MON
Timing Controller
Address Controller
SADX SADY TAS RWCK WE CS1 CS2 CS3 CS4 RSEL1 RSEL2
Controller
Register
ADPCM XT XT MIN OSC Analyzer/Synthesizer
- + 12bit ADC 12bit DAC SG Circuit
MOUT LIN - +
LPF
DVDD DVDD' AVDD DGND AGND
MSM6688/6688L
45/159
LOUT
AMON FIN
AOUT FOUT
ADIN
SG SGC
Semiconductor
MSM6688/6688L
PIN CONFIGURATION (TOP VIEW)
CE RD WR RESET NAR MON RWCK DVDD XT XT WE DROM DI/0 CS4
56 55 54 53 52 51 50 49 48 47 46 45 44 43
D0 D1 D2 D3 BUSY RPM VPM ACON TEST MCUM CE TEST TEST TEST
1 2 3 4 5 6 7 8 9 10 11 12 13 14
42 41 40 39 38 37 36 35 34 33 32 31 30 29
CS3 CS2 CS1 SADX SADY TAS SAS PDWN TEST TEST RSEL2 RSEL1 DGND AGND
15
16
17
18
19
20
21
22
23
24
25
26
52
27
51
64
63
62
61
60
59
58
57
56
55
54
53
50
49
CE RD WR RESET NAR MON NC RWCK DVDD XT XT NC WE DROM DI/0 CS4
TEST ADIN FOUT AOUT FIN AMON DVDD' AVDD SG SGC LOUT LIN MOUT MIN
56-Pin Plastic QFP
28
D0 D1 D2 D3 NC BUSY RPM VPM ACON TEST MCUM NC CE TEST TEST TEST
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
CS3 NC CS2 CS1 SADX SADY TAS SAS PDWN NC TEST TEST RSEL2 RSEL1 DGND AGND
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
TEST NC ADIN NC FOUT AOUT FIN AMON AVDD SG SGC LOUT LIN MOUT MIN NC
NC: No connection 64-Pin Plastic TQFP 46/159
32
Semiconductor
MSM6688/6688L
PIN DESCRIPTIONS
Pin QFP TQFP 49 21 22 30 29 23 24 28 26 27 25 20 19 17 16 18 39 38 56 -- 25 34 33 26 27 31 29 30 28 24 23 21 19 22 44 43 Symbol DVDD DVDD' AVDD DGND AGND SG SGC MIN LIN MOUT LOUT AMON FIN FOUT ADIN AOUT SADX SADY Type -- -- -- -- -- O I O O I O I O Description Digital power supply pin. Insert a bypass capacitor of 0.1F or more between this pin and the DGND pin. Digital power supply pin Analog power supply pin. Insert a bypass capacitor of 0.1F or more between this pin and the AGND pin. Digital ground pin Analog ground pin Output pin for analog circuit reference voltage (signal ground) Inverting input pin of the built-in OP amplifier. Non-inverting input pin is internally connected to SG (signal ground). MOUT and LOUT are output pins of the built-in OP amplifier for MIN and LIN, respectively. This pin is connected to the LOUT pin in the recording mode and to the DA converter output in the playback mode. Used to connect the built-in LPF input (FIN pin). Input pin of the built-in LPF. Output pin of the built-in LPF. Used to connect the AD converter input (ADIN pin) Input pin of the built-in 12-bit AD converter. Output pin of the built-in LPF. This pin outputs playback waveforms and used to connect an external speaker drive amplifier. (Serial Address Data). SADX is used to connect the SAD pin of each external serial register and the SADX pin of each external serial voice ROM. SADY is used to connect the SADY pin of each external serial voice ROM. Outputs of starting address of read/write. (Serial Address Strobe). Used to connect the SAS pin of external serial register and the SASX and SASY pins of external serial voice ROM Clock pin to write the serial address. (Transfer Address Strobe). Used to connect the TAS pin of each external serial register and serial voice ROM. This pin outputs address strobe outputs to set the serial address data from the SADX and SADY pins into the internal address counter of each serial register and serial voice ROM. (Read/Write Clock). Used to connect the RWCK pin of each external serial register and the RDCK pin of each external serial voice ROM. This pin outputs a clock to read data from or write it into each external serial register. (Write Enable) Used to connect the WE pin of each external serial register. This pin outputs WE signal to select either read or write mode. (Data I/O). Used to connect the DIN and DOUT pins of DRAM and serial register. This pin outputs the data to be written into the serial register or inputs the data read from the serial registers. (Data ROM). Used to connect the DOUT pin of each external serial voiceROM.
O
36
41
SAS
O
37
42
TAS
O
50
57
RWCK
O
46 44 45
52 50 51
WE DI/O DROM
O I/O I
47/159
Semiconductor
MSM6688/6688L
Pin QFP TQFP 40 41 42 43 45 46 48 49
Symbol CS1 CS2 CS3 CS4
Type
Description (Chip Select). Used to connect the CS pin of serial register and the CS (CS1, CS2, CS3) pins of each serial voice ROM.
O
(Register Select). These are used to select the number of external serial registers. 31 32 35 36 RSEL1 RSEL2 RSEL2 I RSEL1 Number of serial registers L L 1 L H 2 H L 3 H H 4
10
11
MCUM
I
This pin is used to select either the stand-alone mode or the microcontroller interface mode. Low level: Stand-alone mode High level: Microcontroller interface mode A high input level at this pin causes the MSM6688/6688L to be initialized and to go into the power down state. (Power Down). When a low level is input to this pin, the MSM6688 goes to the power down state. Unlike the RESET pin, this pin does not force to reset the MSM6688/6688L. When an low level is applied to this PDWN pin during recording operation, the MSM6688/6688L is halted, and will be maintained in the power down state while PDWN is low. After this pin is restored to a high level, postprocessing for recording will be performed. Bi-directional data bus to transfer commands and data to and from an external microcontroller.
53
61
RESET
I
35
40
PDWN
I
1 2 3 4 54
1 2 3 4 62
D0 D1 D2 D3 WR RD
I/O
I
Write pulse input pin. Inputting a low pulse to this WR pin causes a command or data to be input via D0-D3 pins. Read pulse input pin. Inputting a low pulse to this RD pin causes status bits or data to be output via D0-D3 pins. Chip enable input pins. When the CE pin is set to a low level or the CE pin is set to a high level, the write pulse (WR), read pulse (RD) can be accepted. When the CE pin is set to a high level or CE pin is set to a low level, the write pulse (WR) and read pulse (RD) cannot be accepted so that data cannot be transferred to and from via D0-D3 pins. Outputs a high level while a command is being executed. When this pin is held high, do not apply any data to D0-D3 pins. The state of this BUSY pin is the same as the contents of the BUSY bit of the status register. Outputs a high level during recording or playback operation. The state of this RPM is the same as the contents of the RPM bit of the status register. Outputs a high level during the standby for voice after the start of voice triggered recording and the record/playback is stopped temporarily by inputting the PAUSE command. The state of this VPM pin is the same as the contents of the VPM bit of the status register.
55
63
I
56 11
64 13
CE CE
I
5
6
BUSY
O
6
7
RPM
O
7
8
VPM
O
48/159
Semiconductor
MSM6688/6688L
Pin QFP TQFP
Symbol
Type
Description This NAR bit indicates whether the phrase designation by the CHAN command is enabled or disabled. In the ROM playback operation, specify the next phrase after making sure that the NAR output is high, and input the START command. Used to select the use or nonuse of the pop noise suppression circuit at the analog output (AOUT) pin. When low level, the pop noise suppression circuit is not used. When high level, the pop noise suppression circuit is used. Used to connect an oscillator. When an external clock is used, input the clock through this pin. At the power down state, this pin must be set to the ground level. Used to connect an oscillator, when an external clock is used, this pin must be left open. Outputs a high level while the record/playback operation is being performed. Outputs a synchronizing clock while record/playback activated by the EXT command is being performed. Used to test the MSM6688/6688L. Input a low level to the TEST pin and a high level to the TEST pin.
52
60
NAR
O
8
9
ACON
I
47
54
XT
I
48
55
XT
O
51
59
MON TEST TEST
O
12-15,34 14-17,38 9,33 10,37
I
49/159
Semiconductor
MSM6688/6688L
ABSOLUTE MAXIMUM RATINGS (for MSM6688 (5 V Version))
Parameter Power supply voltage Input voltage Storage temperature Symbol VDD VIN TSTG Condition Ta=25C Ta=25C -- Rating -0.3 to +7.0 -0.3 to VDD+0.3 -55 to +150 Unit V V C
RECOMMENDED OPERATING CONDITIONS (for MSM6688 (5 V Version))
Parameter Power supply voltage Operating temperature Master clock frequency Symbol VDD Top fosc Condition DGND=AGND=0V -- -- Range 3.5 to 5.5 (Note 3) -40 to +85 4.0 to 8.192 Unit V C MHz
ELECTRICAL CHARACTERISTICS (for MSM6688 (5 V Version))
DC Characteristics
Parameter High input voltage Low input voltage High output voltage Low output voltage
High input current (Note 1) High input current (Note 2) Low input current (Note 1) Low input current (Note 2) Operating current consumption
DVDD=DVDD'=AVDD=4.5 to 5.5V (Note 3) DGND=AGND=0V Ta=-40 to +85C Symbol VIH VIL VOH VOL IIH1 IIH2 IIL1 IIL2 IDD IDDS IOH=-40mA IOL=2mA VIH=VDD VIH=VDD VIL=GND VIL=GND fosc = 8 MHz, no load
During power down, no load, Ta=-40 to +70C During power down, no load, Ta=-40 to +85C
Condition -- --
Min.
0.8VDD
Typ. -- -- -- -- -- -- -- -- 15 -- --
Max. --
0.2VDD
Unit V V V V mA mA mA mA mA mA mA
--
VDD-0.3
-- 0.45 10 20 -- -- 30 10 50
-- -- --
-10 -20
-- -- --
Standby current consumption
Note: 1. Applies to all input pins excluding the XT pin. 2. Applies to the XT pin. 3. Recording and playback should be performed at a power supply voltage of 4.5 to 5.5V. For other operations such as backup for a serial register, the IC operates at 3.5 to 5.5V.
50/159
Semiconductor Analog Characteristics
Parameter DA output relative error
FIN admissible input voltage range
MSM6688/6688L
DVDD=DVDD'=AVDD=4.5 to 5.5V DGND=AGND=0V Ta=-40 to +85C Symbol |VDAE| VFIN RFIN VADIN RADIN GOP RINA ROUTA RAOUT RFOUT Condition no load -- -- -- -- fIN=0 to 4kHz -- -- -- -- Min. -- 1 1 0 1 40 1 200 50 50 Typ. -- -- -- -- -- -- -- -- -- -- Max. 10 VDD-1 -- VDD -- -- -- -- -- -- Unit mV V MW V MW dB MW kW kW kW
FIN input impedance
ADIN admissible input voltage range
ADIN input impedance Op-amp open loop gain
Op-amp input impedance Op-amp load resistance AOUT load resistance FOUT load resistance
51/159
Semiconductor AC Characteristics
MSM6688/6688L
DVDD=DVDD'=AVDD=4.5 to 5.5V DGND=AGND=0V Ta=-40 to +85C fosc=4.096MHz fSAMP=8.0kHz Parameter Symbol Min. tRST (Note 1)* * * * (Note 1)* tREX tPDL tPDH tPX tBPD tRR tCR tDRE tDRF tWW tCW tDWS tDWH tDRW (Note 1)* ** ** ** tBR tB1 tB2 tB3 tBD tWBR tWDR tBAW tBAD tWAR tWDR tAD1 1 -- 500 500 125 0.25 200 30 -- -- 200 30 100 30 250 -- -- -- -- -- 270 50 -- -- 270 50 -- Typ. -- 1 -- -- -- -- -- -- -- 10 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1 Max. -- -- -- -- 500 80 -- -- 200 50 -- -- -- -- -- 1 16 16 16 16 -- -- 270 50 -- -- -- Unit ms ms ms ms ms ms ns ns ns ns ns ns ns ns ns ms ms ms ms ms ms ms ms ms ms ms ms
RESET pulse width RESET execution time PDWN low level time PDWN high level time Oscillating time after input of PDWN BUSY time after release of PDWN RD pulse width Setup and hold time of CE and CE for RD Time from RD fall to data valid Time from RD rise to data float WR pulse width Setup and hold time of CE and CE for WR Data setup time to WR rise Data hold time from WR rise RD and WR disable time BUSY time after release of RESET BUSY time after input of 1-nibble command BUSY time after input of 2-nibble command BUSY time after input of 3-nibble command
BUSY time after input of 2-nibble or 3-nibble command data** WAIT time after input of BLKRD command WAIT time after output of BLKRD command block data BUSY time after input of ADRWR command BUSY time after input of ADRWR command address data WAIT time after input of ADRRD command WAIT time after output of ADRRD command address data Address control time at start of record/playback * * * * * * *
Items with * are proportional to the period of master clock frequency fosc. Items with ** are proportional to the period of the master clock frequency fosc, and are also proportional to the sampling frequency fSAMP during record/playback. Note: 1. The oscillation startup stabilization time is added to tREX, tBPD and tBR. The oscillation startup stabilization time is several tens of milliseconds for crystal oscillators and is several hundreds of microseconds for ceramic oscillators.
52/159
Semiconductor
MSM6688/6688L
DVDD=DVDD'=AVDD=4.5 to 5.5V DGND=AGND=0V Ta=-40 to +85C fosc=4.096MHz fSAMP=8.0kHz Parameter Flex record Time from input of START command to MON rise Flex playback * * Symbol Min. tSTCM tSTCM tSTCM tSTCM tSPCM tSPCM tSPCM tSPCM tSTCR tSPCR tSPCV tSPCV tSTCN tMID tPSCP tSTCP tSPCP tWCRW tWRC tWWD tWPL tWSP tWRW tWA1 tWA2 tWRC tWWD tWPL tWSP -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 770 16 50 50 50 16 16 270 16 50 50 16 Typ. -- -- -- -- -- -- -- -- -- -- -- -- -- 1.25 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Max. 50 20 1 1 80 2 2 2 16 2 80 2 16 -- 16 500 500 -- -- -- -- -- -- -- -- -- -- -- -- Unit ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms
Direct record/playback * ROM playback Flex record * * *
Time from input of STOP command to MON fall
Flex playback
Direct record/playback * ROM playback * *
Time from input of START command to setting of RPM bit
Time from input of STOP command to end of record/playback * Time from input of STOP command to release of standby for voice Flex record Direct record * * *
Time from input of START command to NAR bit fall during continuos playback
Unvoiced time between phrases during continuous playback * Time from input of PAUSE command to setting of VPM bit Time from input of START command during pause to resetting of VPM bit Time from input of STOP command during pause to resetting of VPM bit WAIT time after input of command WAIT time after input of REC command CHRW WAIT time after input of write data command WAIT time after input of PLAY command WAIT time after input of STOP command WAIT time after input of command
WAIT time after input of address (2nd-5th nibbles)
** ** ** * * * * * * * * * * * *
WAIT time after input of address (6th nibble) DTRW and DTRD WAIT time after input of REC command commands WAIT time after input of write data WAIT time after input of PLAY command WAIT time after input of STOP command
Items with * are proportional to the period of master clock frequency fosc. Items with ** are proportional to the period of the master clock frequency fosc, and are also proportional to the sampling frequency fSAMP during record/playback. 53/159
Semiconductor
MSM6688/6688L
DVDD=DVDD'=AVDD=4.5V to 5.5V DGND=AGND=0V Ta=-40 to +85C fosc=4.096MHz fSAMP=8.0kHz Parameter
WAIT time for deletion of all phrases after input of DEL command
WAIT time for deletion of a specified phase after input of DEL command
Symbol Min. * * * * * ** ** ** ** tWBLA tWBLI tLV tAOR tAOF tEM tMH tML tERD 550 70 -- -- -- -- -- -- --
Typ. -- -- -- 64 256 -- 31 94 --
Max. -- -- 16 -- -- 330 -- -- 120
Unit ms ms ms ms ms ms ms ms ms
Time to start of DC level transition after input of LEV command
DC level transition time (GND to 1/2 VDD) DC level transition time (1/2 VDD to GND) Time from input of EXT command to MON rise MON high level time MON low level time Time from MON rise to RD pulse rise during EXT recording command Time from MON rise to WR pulse rise during playback Time from ADPCM data WR pulse to input of STOP command during playback Time from MON rise to input of STOP command Time from input of STOP command to end of record/playback
**
tEWR tWE1 tESP tWEX
--
--
120
ms
**
16
--
--
ms
** **
-- --
-- --
100 250
ms ms
Items with * are proportional to the period of master clock frequency fosc. Items with ** are proportional to the period of the master clock frequency fosc, and are also proportional to the sampling frequency fSAMP during record/playback.
54/159
Semiconductor
MSM6688/6688L
ABSOLUTE MAXIMUM RATINGS (for MSM6688L (3 V Version))
Parameter Power supply voltage Input voltage Storage temperature Symbol VDD VIN TSTG Condition Ta=25C Ta=25C -- Rating -0.3 to +7.0 -0.3 to VDD+0.3 -55 to +150 Unit V V C
RECOMMENDED OPERATING CONDITIONS (for MSM6688L (3 V Version))
Parameter Power supply voltage Operating temperature Master clock frequency Symbol VDD Top fosc Condition DGND=AGND=0V -- -- Range 2.7 to 3.6 -40 to +85 4.0 to 8.192 Unit V C MHz
ELECTRICAL CHARACTERISTICS (for MSM6688L (3 V Version))
DC Characteristics
Parameter High input voltage Low input voltage High output voltage Low output voltage
High input current (Note 1) High input current (Note 2) Low input current (Note 1) Low input current (Note 2) Operating current consumption
DVDD=DVDD'=AVDD=2.7 to 3.6V DGND=AGND=0V Ta=-40 to +85C Symbol VIH VIL VOH VOL IIH1 IIH2 IIL1 IIL2 IDD IDDS IOH=-40mA IOL=2mA VIH=VDD VIH=VDD VIL=GND VIL=GND fosc = 8 MHz, no load
During power down, no load, Ta=-40 to +70C During power down, no load, Ta=-40 to +85C
Condition -- --
Min.
0.85VDD
Typ. -- -- -- -- -- -- -- -- 15 -- --
Max. --
0.15VDD
Unit V V V V mA mA mA mA mA mA mA
--
VDD-0.3
-- 0.45 10 20 -- -- 30 15 100
-- -- --
-10 -20
-- -- --
Standby current consumption
Note: 1. Applies to all input pins excluding the XT pin. 2. Applies to the XT pin.
55/159
Semiconductor Analog Characteristics
Parameter DA output relative error
FIN admissible input voltage range
MSM6688/6688L
DVDD=DVDD'=AVDD=2.7 to 3.6V DGND=AGND=0V Ta=-40 to +85C Symbol |VDAE| VFIN RFIN VADIN RADIN GOP RINA ROUTA RAOUT RFOUT Condition no load -- -- -- -- fIN=0 to 4kHz -- -- -- -- Min. -- 1/4VDD 1 0 1 40 1 200 50 50 Typ. -- -- -- -- -- -- -- -- -- -- Max. 10 3/4VDD -- VDD -- -- -- -- -- -- Unit mV V MW V MW dB MW kW kW kW
FIN input impedance
ADIN admissible input voltage range
ADIN input impedance Op-amp open loop gain
Op-amp input impedance Op-amp load resistance AOUT load resistance FOUT load resistance
56/159
Semiconductor AC Characteristics
MSM6688/6688L
DVDD=DVDD'=AVDD=2.7 to 3.6V DGND=AGND=0V Ta=-40 to +85C fosc=4.096MHz fSAMP=8.0kHz Parameter Symbol Min. tRST (Note 1)* * * * (Note 1)* tREX tPDL tPDH tPX tBPD tRR tCR tDRE tDRF tWW tCW tDWS tDWH tDRW (Note 1)* ** ** ** tBR tB1 tB2 tB3 tBD tWBR tWDR tBAW tBAD tWAR tWDR tAD1 1 -- 500 500 125 0.25 200 30 -- -- 200 30 100 30 250 -- -- -- -- -- 270 50 -- -- 270 50 -- Typ. -- 1 -- -- -- -- -- -- -- 10 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1 Max. -- -- -- -- 500 80 -- -- 200 50 -- -- -- -- -- 1 16 16 16 16 -- -- 270 50 -- -- -- Unit ms ms ms ms ms ms ns ns ns ns ns ns ns ns ns ms ms ms ms ms ms ms ms ms ms ms ms
RESET pulse width RESET execution time PDWN low level time PDWN high level time Oscillating time after input of PDWN BUSY time after release of PDWN RD pulse width Setup and hold time of CE and CE for RD Time from RD fall to data valid Time from RD rise to data float WR pulse width Setup and hold time of CE and CE for WR Data setup time to WR rise Data hold time from WR rise RD and WR disable time BUSY time after release of RESET BUSY time after input of 1-nibble command BUSY time after input of 2-nibble command BUSY time after input of 3-nibble command
BUSY time after input of 2-nibble or 3-nibble command data** WAIT time after input of BLKRD command WAIT time after output of BLKRD command block data BUSY time after input of ADRWR command BUSY time after input of ADRWR command address data WAIT time after input of ADRRD command WAIT time after output of ADRRD command address data Address control time at start of record/playback * * * * * * *
Items with * are proportional to the period of master clock frequency fosc. Items with ** are proportional to the period of the master clock frequency fosc, and are also proportional to the sampling frequency fSAMP during record/playback. Note: 1. The oscillation startup stabilization time is added to tREX, tBPD and tBR. The oscillation startup stabilization time is several tens of milliseconds for crystal oscillators and is several hundreds of microseconds for ceramic oscillators.
57/159
Semiconductor
MSM6688/6688L
DVDD=DVDD'=AVDD=2.7 to 3.6V DGND=AGND=0V Ta=-40 to +85C fosc=4.096MHz fSAMP=8.0kHz Parameter Flex record Time from input of START command to MON rise Flex playback * * Symbol Min. tSTCM tSTCM tSTCM tSTCM tSPCM tSPCM tSPCM tSPCM tSTCR tSPCR tSPCV tSPCV tSTCN tMID tPSCP tSTCP tSPCP tWCRW tWRC tWWD tWPL tWSP tWRW tWA1 tWA2 tWRC tWWD tWPL tWSP -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 770 16 50 50 50 16 16 270 16 50 50 16 Typ. -- -- -- -- -- -- -- -- -- -- -- -- -- 1.25 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Max. 50 20 1 1 80 2 2 2 16 2 80 2 16 -- 16 500 500 -- -- -- -- -- -- -- -- -- -- -- -- Unit ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms ms
Direct record/playback * ROM playback Flex record * * *
Time from input of STOP command to MON fall
Flex playback
Direct record/playback * ROM playback * *
Time from input of START command to setting of RPM bit
Time from input of STOP command to end of record/playback * Time from input of STOP command to release of standby for voice Flex record Direct record * * *
Time from input of START command to NAR bit fall during continuos playback
Unvoiced time between phrases during continuous playback * Time from input of PAUSE command to setting of VPM bit Time from input of START command during pause to resetting of VPM bit Time from input of STOP command during pause to resetting of VPM bit WAIT time after input of command WAIT time after input of REC command CHRW WAIT time after input of write data command WAIT time after input of PLAY command WAIT time after input of STOP command WAIT time after input of command
WAIT time after input of address (2nd-5th nibbles)
** ** ** * * * * * * * * * * * *
WAIT time after input of address (6th nibble) DTRW and DTRD WAIT time after input of REC command commands WAIT time after input of write data WAIT time after input of PLAY command WAIT time after input of STOP command
Items with * are proportional to the period of master clock frequency fosc. Items with ** are proportional to the period of the master clock frequency fosc, and are also proportional to the sampling frequency fSAMP during record/playback. 58/159
Semiconductor
MSM6688/6688L
DVDD=DVDD'=AVDD=2.7V to 3.6V DGND=AGND=0V Ta=-40 to +85C fosc=4.096MHz fSAMP=8.0kHz Parameter
WAIT time for deletion of all phrases after input of DEL command
WAIT time for deletion of a specified phase after input of DEL command
Symbol Min. * * * * * ** ** ** ** tWBLA tWBLI tLV tAOR tAOF tEM tMH tML tERD 550 70 -- -- -- -- -- -- --
Typ. -- -- -- 64 256 -- 31 94 --
Max. -- -- 16 -- -- 330 -- -- 120
Unit ms ms ms ms ms ms ms ms ms
Time to start of DC level transition after input of LEV command
DC level transition time (GND to 1/2 VDD) DC level transition time (1/2 VDD to GND) Time from input of EXT command to MON rise MON high level time MON low level time Time from MON rise to RD pulse rise during EXT recording command Time from MON rise to WR pulse rise during playback Time from ADPCM data WR pulse to input of STOP command during playback Time from MON rise to input of STOP command Time from input of STOP command to end of record/playback
**
tEWR
--
--
120
ms
** ** **
tWE1 tESP tWEX
16 -- --
-- -- --
-- 100 250
ms ms ms
Items with * are proportional to the period of master clock frequency fosc. Items with ** are proportional to the period of the master clock frequency fosc, and are also proportional to the sampling frequency fSAMP during record/playback.
59/159
Semiconductor
MSM6688/6688L
TIMING DIAGRAMS
Reset Function
VDD tRST

BUSY (O) Hi-Z
Undefined
RESET (I)
tREX
Power down
Reset operation in progress
Standby for record/playback
60/159
Semiconductor Power Down by the PDWN pin
tPDL PDWN (I)
MSM6688/6688L
tPDH
tPX Note 1 XT XT (I) (O) Oscillation in progress Oscillation in progress tBPD BUSY RPM VPM NAR (O) (O) (O) (O) Hi-Z Hi-Z Hi-Z Hi-Z
Power down
Postprocessing
Standby
WR and RD pulses are not accepted
Note: 1. When an external clock is used, apply a low level to the PDWN pin and then continue to apply the external clock to the XT pin for tPX.
61/159
Semiconductor Data Read Timing (RD Pulse)
MSM6688/6688L

CE CE (I) (I) tCR tCR RD (I) tRR tDRE tDRF D0-D3 (I/O)
Data Write Timing (WR Pules)
CE CE
(I)
(I)
tCW
tCW
WR
(I)
tWW tDWS
tDWH
D0-D3
(I/O)
62/159
Semiconductor
Inputting 1-Nibble Commands (NOP, PAUSE, PLAY, REC, START, STOP and DEL Commands)
WR
(I) tDRW
RD
(I) Status output Status output
D0-D3
(I/O) Command input tB1, tWBLA, tWBL1
Status register BUSY bit
tB1: tWBLA: tWBL1:
NOP, PAUSE, PLAY, REC, START, and STOP commands DEL command (deletion of all phrases) DEL command (deletion of a specified phrase)
MSM6688/6688L
63/159
Semiconductor
Inputting 2-Nibble Commands (SAMP, VDS, and LEV Commands)
WR
(I) tDRW
RD
(I) Status output
D0-D3
(I/O) Command input (1st nibble) tB2 Data input (2nd nibble) tBD
Status register BUSY bit
The LEV command is used to specify the playback level. See the timing diagram for DC level transition by the LEV command.
MSM6688/6688L
64/159
Semiconductor
Inputting 3-Nibble Commands (CHAN and BLKWR Commands)
WR
(I) tDRW
RD
(I) Status output
D0-D3
(I/O)
Command input (1st nibble) Data input (2nd nibble) Data input (3rd nibble)
Status register BUSY bit
tB3
tBD
tBD
MSM6688/6688L
65/159
Semiconductor
Inputting the BLKRD Command
WR (I) tWBR RD (I) tWDR tWDR
Input of WR and RD pulses enabled
D0-D3
(I/O) Status output Command input (1st nibble) Data output (2nd nibble) Data output (3rd nibble)
Status register BUSY bit
1. After making sure that the MSM6688/6688L is not in the busy state by checking the BUSY bit of the status register, input the BLKRD command. 2. Then, the data is read according to the 2nd and 3rd nibble command. However, the status of the BUSY bit cannot be verified by inputting the RD pulse. Therefore, input the RD pulse either after the waiting time tWBR or tWDR or after verifying the BUSY state at BUSY output pin.
MSM6688/6688L
66/159
Semiconductor
Inputting the ADRWR Command
WR
(I)
RD
(I)
D0-D3
(I/O) Status output
ADRWR command input (1st nibble) Address data input (2nd nibble) Address data input (3rd nibble) Address data input (11th nibble)
tBAW Status register BUSY bit
tBAD
tBAD
tBAD
Input of WR pulse enabled
1. After making sure that the MSM6688/6688L is not in the busy state by checking the BUSY bit of the status register, input the ADRWR command. 2. Then, input 2nd-11th nibble address data after making sure that the MSM6688 is not in the BUSY state by one of the following two methods. q Check of the BUSY bit in the status register q Input the next WR pulse after the waiting time tBAW or tBAD. MSM6688/6688L
67/159
Semiconductor
Inputting the ADRRD Command
WR
(I) tWAR tWDR tWDR
Input of WR and RD pulses enabled
RD
(I)
D0-D3
(I/O) Status output Command input (1st nibble) Address data output (2nd nibble) Address data output (3rd nibble) Address data output (11th nibble)
Status register Busy bit
1. After making sure that the MSM6688/6688L is not in the busy state by checking the BUSY bit of the status register, input the ADRRD command. 2. Then, the address data is read according to 2nd through 11th nibble command. The state of the BUSY bit cannot be checked by the RD pulse. Therefore, input the RD pulse either after the waiting time tWAR or tWDR or after verifying the BUSY state at the BUSY output pin.
MSM6688/6688L
68/159
Semiconductor
Timing for Record/Playback by START Command
RESET WR (I) (I)
D0-D3
(I/O) START command tSTCM (Note) (STOP command) tSPCM (Note)
MON
(I) tBR tB1 tB1
Status register BUSY bit RPM bit NAR bit
tSTCR
tAD1
tSPCR
AOUT (playback)
(O)
Power down
Standby
Address control
Record/playback
Address control
Standby
Power down
MSM6688/6688L
Note: tSTCM and tSPCM vary depending on the control mode for record/playback and on record or playback mode. 69/159
Semiconductor
Timing for Voice Triggered Recording
WR
(I)
D0-D3
(I/O) START command (STOP command) tSPCV (Note) (STOP command) tSPCM
MON
(O) tB1 tB1 tB1
Status register BUSY bit RPM bit VPM bit NAR bit
tSTCR
tAD1
tSPCR
Standby
Standby for voice Voice detected
Address control
Recording
Address control
Standby
If the STOP command is input during standby for voice, this state is changed to the standby for recording.
MSM6688/6688L
Note: tspcv varies depending on the recording mode (flex recording or direct recording).
70/159
Semiconductor
Timing for Continuous ROM Playback by Input of Address Code
WR
(I)
D0-D3
(I/O) CHAN command (1st phrase) START command tSTCM CHAN command (2nd phrase) START command
MON
(O) tSTCR tSTCN
Status register RPM bit NAR bit
tAD1
tMID
AOUT
(O)
Standby
Address control
1st phrase playback
Address control
2nd phrase playback
Standby
MSM6688/6688L
71/159
Semiconductor
Timing for Record/Playback Pause Operation by PAUSE Command
WR RD D0-D3
(I) (I) (I/O) START command tSTCM PAUSE command START command PAUSE command STOP command
MON
(O)
tSPCM tB1 tB1 tB1 tB1 tB1
Status register BUSY bit RPM bit tSTCR VPM bit
tPSCP
tSTCP
tPSCP
tSPCP
Standby
Record/playback
Pause
Record/playback
Pause
Standby
MSM6688/6688L
72/159
Semiconductor
Timing for Data Transfer by CHRW Command
tWCRW WR (I)
tWRC
tWWD
tWSP
Next command input enabled
tWPL RD (I)
D0-D3
(I/O) REC command Write data PLAY Read data command STOP command
Command execution
Write access
Read access
MSM6688/6688L
73/159
Semiconductor
Timing for Data Transfer by DTRW Command
tWRW tWA1 tWA1 tWA1 tWA1 WR (I)
tWA2
tWRC
tWWD
tWSP
Next command input enabled
tWPL RD (I)
D0-D3
(I/O) DTRW command Dummy "0h" X4~X7 X0~X3 X12~X15 X8~X11 Write data REC command Read data PLAY command STOP command
Address input
Write access
Read access
MSM6688/6688L
74/159
Semiconductor
Timing for Data Read by DTRD command
tWRW tWA1 tWA1 tWA1 tWA1 WR (I)
tWA2
tWSP
Input of next command enabled
tWPL RD (I)
D0-D3
(I/O) DTRD command
Y address
X4~X7 X0~X3
Dummy "0h" X8~X11
Read data PLAY command
STOP command
Address input
Read access
MSM6688/6688L
75/159
Semiconductor
Recording by EXT Command
RESET WR RD
(I) (I)
(I)
D0-D3
(I/O) REC command EXT command tEM tMH ADPCM data tML tERD ADPCM data tESP STOP command Next command tWEX input enable
MON
(O)
Standby Power down
Recording
Standby Power down
MSM6688/6688L
76/159
Semiconductor
Playback by EXT Command
RESET
(I) tWE1
WR RD
(I)
(I)
D0-D3
(I/O) PLAY EXT command command tEM Status output ADPCM data tMH tML tEWR ADPCM data tESP STOP command tWEX Next command input enable
MON
(O)
AOUT
(O)
1/2 VDD level GND level Standby Power down Playback
1/2 VDD level GND level Standby Power down
MSM6688/6688L
77/159
Semiconductor
Timing for DC Level Transition by LEV Command
RESET WR D0-D3
(I) (I) (I/O) PLAY command LEV command tLV tAOR PLAY command LEV command tLV tAOF
Status register BUSY bit NAR bit
AOUT
(O) GND level
1/2 VDD level GND level
Power down
Standby
DC level transition
Record/playback
DC level transition Standby
Power down
MSM6688/6688L
78/159
Semiconductor
MSM6688/6688L
FUNCTIONAL DESCRIPTION
Recording Time and Memory Capacity The recording time depends on the memory capacity of the external serial registers, sampling frequency, and ADPCM bit length, and is given by Recording time 1.024 memory capacity (K bits) = (seconds) sampling frequency (kHz) bit length (bits)
For example, if the sampling frequency is 4096 kHz (= 5.333 kHz), ADPCM bit length is 3 bits, and 768 four 8M bit serial registers are used, the recording time can be obtained as follows. Recording time = 1.024 (8192 4 - 64) 5.333 3 = 34 minutes 53 seconds = 2093 seconds
In the above equation, the memory capacity is obtained by subtracting the memory capacity (64 Kbits) for the channel index area from the total memory capacity. Connection of an Oscillator Connect a ceramic oscillator or a crystal oscillator to XT and XT pins as shown below. The optimal load capacities when connecting ceramic oscillators from MURATA MFG., KYOCERA CORPORATION, and TDK CORPORATION are shown below for reference.
MSM6688 MSM6688L XT C1 XT C2
1. MSM6688
Ceramic oscillator Type CSA4.00MG CST4.00MGW MURATA CSA6.00MG MFG. CST6.00MGW CSA8.00MTZ CST8.00MTW KBR-4.0MSA KBR-4.0MKS PBRC4.00A PBRC4.00B KYOCERA KBR-6.0MSA CORPOKBR-6.0MKS RATION PBRC6.00A PBRC6.00B KBR-8.0M PBRC8.00A PBRC8.00B 8.0 (with capacitor) 33 6.0 33 (with capacitor) 4.0 (with capacitor) (with capacitor) Freq(MHz) 4.0 6.0 8.0 30 30 Optimal load capacity C1(pF) C2(pF)
(with capacitor)
79/159
Semiconductor
MSM6688/6688L
2. MSM6688L
Ceramic oscillator Type CSA4.00MG CST4.00MGW CSTCS4.00MG0C5 MURATA CSTCC4.00MG MFG. CSA6.00MG CST6.00MGW CSA8.00MTZ CST8.00MTW KBR-4.0MSB KBR-4.0MKC PBRC4.00A PBRC4.00B KYOCERA KBR-6.0MSB CORPOKBR-6.0MKC RATION PBRC6.00A PBRC6.00B KBR-8.0M PBRC8.00A PBRC8.00B FCR4.0M5 FCR4.0MC5 TDK CORPORATION FCR6.0M5 FCR6.0MC5 CCR6.0MC3 FCR8.0M2S CCR8.0MC5 (with capacitor) (with 30 pF capacitor) (with capacitor) 8.0 6.0 (with 30 pF capacitor) (with capacitor) 4.0 8.0 (with capacitor) (with capacitor) (with capacitor) 4.0 (with 30pF capacitor) (with 30pF capacitor) (with 27pF capacitor) (with 15pF capacitor) (with 30pF capacitor) 6.0 8.0 4.0 Freq(MHz) Optimal load capacity C1(pF) 30 -- -- -- 30 -- 30 -- 33 -- 33 -- 33 6.0 -- 33 -- 33 33 -- 33 -- 33 -- -- 33 -- C2(pF) 30 -- -- -- 30 -- 30 -- 33 -- 33 -- 33 -- 33 -- 33 33 -- 33 -- 33 -- -- 33 --
(with capacitor)
80/159
Semiconductor Power Supply Wiring
MSM6688/6688L
As shown in the following diagram, supply the power to this MSM6688 from the same power source, but separate the power supply wiring to the analog portion from that to the logic position.
+5V
DVDD' DVDD
AVDD
MSM6688 MSM6688L
DGND AGND
The following connections are not permitted.
Analog power supply Digital power supply DVDD DVDD' AVDD DVDD DVDD' AVDD +5V
Analog Input Amplifier Circuit This MSM6688 has two built-in operational amplifiers for amplifying the microphone output. Each OP amplifier is provided with the inverting input pin and output pin. The analog circuit reference voltage SG (signal ground) is connected internally to the non-inverting input of each OP amplifier.
For amplification, form an inverting amplifier circuit and adjust the amplification ratio by using external resistors as shown below.
VIN
+
During recording, the output VLO of OP amp 2 is connected to the input FIN of the LPF. Adjust the amplification ratio by using the external resistors so that the VLO amplitude is within the FIN admissible input voltage (VFIN) range. If VLO exceeds the VFIN range, the LPF output waveform will be distorted. The table below shows an example of the FIN admissible input voltage range for the MSM6688 and MSM6688L.
Parameter Power Supply Voltage VDD 5V 3V FIN admissible input Voltage range VFIN min. 1V 0.75 V max. 4V 2.25 V FIN admissible input Voltage 3 Vp-p 1.5 Vp-p
,
VMO VLO
-
R1
R2
R3
R4
VDD
VLO
VFIN (max.) 1/2VDD
MIN
MOUT
LIN
LOUT
- +
- +
VFIN (min.) GND
OP amp 1
OP amp 2
SG
VLO =
R4 R3
VMO =
R2 * R4 R1 * R3
VIN (V)
MSM6688 MSM6688L
The value of the OP amp load resistance ROUTA is 200kW minimum. Therefore the values of the inverting amplifier circuit feedback resistors R2 and R4 should be 200kW or more. 81/159
Semiconductor Connection of LPF Circuit Peripherals
MSM6688/6688L
The AMON pin is connected internally to the output of the amplifier circuit (LOUT pin) in the recording mode and to the output of the built-in DA converter in the playback mode. Therefore, connect the AMON pin directly to the input (FIN pin) of the built-in LPF. Both the FOUT and AOUT pins are the output pins of the built-in LPF. Connect the FOUT pin to the input (ADIN pin) of the built-in AD converter and connect the AOUT pin to an external speaker through an external speaker drive amplifier. In the MSM6688/6688L, the connection of each of the FOUT and AOUT pins is changed to one of the output of the LPF, GND (ground) level, and SG (signal ground) level, depending on the operation status as shown below.
At power down (RESET pin = H) GND level GND level During operation (RESET pin = L) Recording mode LPF output (recording waveform) SG level
Analog pin FOUT pin AOUT pin
LIN
- +
LOUT AMON
FIN
Record mode Playback mode
SG
LPF
Playback mode -
+
DAC
Record mode SG
GND
- +
GND
Note: This diagram shows the state of each switch during the recording operation.
LPF Characteristics This MSM6688/6688L contains a fourth-order switched-capacitor LPF. The attenuation characteristic of this LPF is -40 dB/oct. The cut-off frequency and frequency characteristics of this LPF vary in proportion to the sampling frequency (fsamp). The cut-off frequency is preset to 0.4 times the sampling frequency. The following graph depicts the frequency characteristics of the LPF at fsamp = 8 kHz.
[dB]
20 10 0 -10 -20 -30 -40 -50 -60 -70 -80
100
LPF Frequency Characteristics (fsamp = 8.0 kHz)
,
LPF output
Speaker drive amplifier AOUT FOUT ADIN Power down Power down
Playback mode
LPF output (playback waveform)
ADC
1K
10K
[Hz]
82/159
Semiconductor
MSM6688/6688L
Full Scale of A/D and D/A Converters
Parameter MSM6688 MSM6688L Full scale of A/D and D/A converters min. (V) 0 1/4VDD max. (v) VDD 3/4VDD amplitude (Vp-p) VDD 1/2VDD
1. When the MSM6688 is used
VDD (5V) VDD-1 (4V) 1 V (2.5V) 2 DD 1V (1V) 0V (0V) Full scale of A/D and D/A converters LPF admissible input voltage range
Note: Value in parentheses applies when VDD=5.0V. 2. When the MSM6688L is used
VDD (3V) 3 V (2.25V) 4 DD 1 V (1.5V) 2 DD 1 V (0.75V) 4 DD 0V (0V) Full scale of A/D and D/A converters LPF admissible input voltage range
Note: Value in parentheses applies when VDD=3.0 V.
83/159
Semiconductor Reset Function
MSM6688/6688L
By applying a high level to the RESET pin, the MSM6688/6688L stops oscillation to minimize current consumption and goes to the power-down state. At the same time, the control circuit is reset and initialized. When this reset operation is performed, the record/playback condition, such as sampling frequency and ADPCM bit length, and the data stored in the serial registers are set to the data stored just before the reset takes place. In this case, the playback level is set to 0 dB amplitude. If a high level is applied to the RESET pin during command execution or record/playback operation, the MSM6688/6688L is set to the power-down state and initialized state. Internal data voice data becomes undefined. The following shows the power-down state of the MSM6688/6688L. (1) Oscillation is stopped and all operations of the internal circuit are halted. (2) The current consumption is minimized. When an external clock is used, apply a ground (GND) level to the XT pin at power down so that no current can flow into the oscillation circuit. (3) D0-D3 pins constituting the data bus go to the high-impedance state, independent of the state of the RD, CE, and CE pins. (4) CS1 - CS4 pins are set to a high level to minimize the current consumption of external serial registers and serial voice ROMs. (5) The state of the output pins and input/output pins are as follows.
Power down mode with RESET="H" "H" level "H" level "L" level "L" level Hi-Z Hi-Z GND level Power down mode with PDWN="L" "H" level "H" level or "L" level "H" level or "L" level "L" level Hi-Z "H" "L" or Hi-Z GND level
Pin name SAS, TAS, CS1-CS4, RWCK SADX, WE, NAR SADY MON D0-D3, BUSY, RPM, VPM DI/O AOUT, FOUT
After powering up the MSM6688/6688L, be sure to initialize it by applying a high level to the RESET pin.
84/159
Semiconductor Power Down by the PDWN pin
MSM6688/6688L
By applying a low level to the PDWN pin, the MSM6688/6688L is set to the power-down state, in which the frequency oscillation and all operations of internal circuits are halted. Unlike the reset operation by the RESET input, the control circuit will not be initialized by this power-down operation. The power-down operation will not affect the data in the internal control circuit and external serial registers. Therefore, this power-down operation is useful when the battery backup takes place in case of power failure. When PDWN goes to a low level during command execution, this execution of command is halted at the time that power-down operation is performed. When PDWN becomes low during one of the following operations, their respective operations will be performed after the power-down state is released (PDWN = H). (1) When the MSM6688/6688L is powered down (PDWN = L) during the record/playback operation: The record/playback operation is stopped. After the release of the power-down state, the postprocessing will be performed. The end of the postprocessing can be verified by checking the BUSY bit and RPM bit of the status register. (2) When the MSM6688/6688L is powered down (PDWN = L) during the phrase deleting operation: The phrase deleting operation is temporarily stopped and will be restarted after the release of the power-down state. The end of the phrase deleting operation can be verified by checking the BUSY bit. (3) When the MSM6688/6688L is powered down (PDWN = L) during the time the transition of the AOUT output to a DC level by LEV command is in progress: This transition operation is temporarily stopped and will be continued after the release of the power-down state. The end of the transition to a DC level can be verified by checking the BUSY bit.
85/159
Semiconductor Record/Playback Control Modes
MSM6688/6688L
There are four types of record/playback mode: flex record/playback, ROM playback by inputting address codes, direct record/playback, and direct ROM playback modes. A desired record/ playback control mode can be selected by the command mode set in the SAMP command.
Record/ playback control mode Command mode Number of phrases Addressing ROM playback Flex Direct Direct by input of record/playback record/playback ROM playback address code Mode 0 63 Mode 1 255 Mode 2 64 (expandable) Mode 3 As required
Indirect addressing Indirect addressing Direct addressing Direct addressing by by by by phrase designation phrase designation ADRWR command ADRWR command Setting by BLKWR command -- Setting by ADRWR command --
Setting of recording time
1. Flex record/playback The recording area for each phrase is indirectly specified by phrase designation (CA0-CA5, 63 phrases). The recording area for each phrase is controlled by the MSM6688/6688L, so that the address control load of the microcontroller can be reduced. The recording time is specified by the BLKWR command. During recording operation, the MSM6688/6688L searches the memory areas that are not used by other phrases and writes the voice data on them. Therefore, the phrase control by the microcontroller can be performed easily even in applications in which it is required to perform phrase deletion and re-recording frequently.
86/159
Semiconductor 2. ROM playback by input of address codes
MSM6688/6688L
The playback area of each phrase of the fixed message is indirectly specified by phrase designation (CA0-CA7, 255 phrases). The table containing the start address and stop address that indicate the playback area, sampling frequency and ADPCM bit length, is written in the index area of the serial voice ROM. 3. Direct record/playback The recording area for each phrases is specified directly by inputting the address set in the ADRWR command from the microcontroller after a desired phrase has been specified by phrase designation (CA0-CA5, 64 phrases). This means that the address control such as the allocation of memory capacity (recording time) for each phrases is performed by the microcontroller. This direct record/playback mode is suitable for the case where the number of phrases and the recording time allocated to each phase are fixed. If the table containing the start address and stop address of each phrase is stored in the microcontroller or an external circuit, it becomes possible to perform record/playback of 65 or more phrases. 4. Direct ROM playback The playback area of each phrase for a fixed message is specified directly by inputting the address set in the ADRWR command from the microcontroller. In this case, it is required to store the table containing the start and stop addresses of each phrase, sampling frequency and ADPCM bit length in the microcontroller and the external ROM. If a serial voice ROM products for the MSM6388/MSM6588/6588L ADPCM solid state recorders are used for the MSM6688/6688L, this direct ROM playback mode is applied.
87/159
Semiconductor Data Configuration of External Serial Registers
MSM6688/6688L
The external RAM constitutes a virtual memory with a address space of (X addresses in the word direction) (depth of 1kbits) through the DRAM interface (MSM6791). This virtual memory is addressable only for X addresses in the word direction. The external RAM is divided into the channel index area that stores the data for address control of each phrase and the voice (ADPCM) data area. The address space and channel index area in the flex record/playback mode are different from those in the direct record/playback mode. 1. Address space allocation of external serial registers 1.1 Address space for the flex record/playback mode In the flex record/playback mode, the total memory capacity of external serial registers is equally divided into 256 blocks that are addressable by 00h-FFh. Each block is composed of multiple words each having the depth of 1K bits. X addresses in the word direction are offset addresses in the blocks. The memory capacity of one block and the maximum address of X addresses vary depending on the total memory capacity of serial registers externally connected.
RSEL2 RSEL1 Total memory capacity (Number. of serial registers) Memory capacity of one block 16kbps Recording time of one block 24kbps 32kbps Number of words of one block [Offset address] Number of initially available blocks L L 8M bits (1) 32K bits 2.0 seconds 1.4 seconds 1.0 second 32 words [00h - 1Fh] 254 (FEh) L H 16M bits (2) 64K bits 4.1 seconds 2.7 seconds 2.0 seconds 64 words [00h - 3Fh] 255 (FFh) H L 24M bits (3) 128K bits 8.2 seconds 5.5 seconds 4.1 seconds 128 words [00h - 7Fh] 191 (BFh) H H 32M bits (4) 128K bits 8.2 seconds 5.5 seconds 4.1 seconds 128 words [00h - 7Fh] 255 (FFh)
88/159
Semiconductor
MSM6688/6688L
The storing method of 1K-bit ADPCM data in the Y direction varies depending on the ADPCM bit length (3-bit ADPCM or 4-bit ADPCM). (1) For 3-bit ADPCM, (3 bits 340 samples + unused 4 bits = 1024 bits) are stored in the 1K-bit memory area. One Y address is allocated to two ADPCM data samples, so that Y addresses are addressable by 00-A9h (2) For 4-bit ADPCM, (4 bits 256 samples = 1024 bits) are stored in the 1K-bit memory area. One Y address is allocated to two ADPCM data samples, so that Y addresses are addressable by 00-7Fh
89/159
Semiconductor
Address Space Allocation of RAM (Flex record/playback, 32M-bit)
00h 01h
3Eh 3Fh 40h 41h
7Eh 7Fh 80h 81h
BEh BFh C0h C1h
,
1K bits
MSM6688/6688L
Block (256 blocks ranging from 00h to FFh, 1 block = 128K bits) Channel index area (64 words x 1K bits = 64K bits) X address (offset address in one block, 128 words from 00h to 7Fh, 1 word = 1K bits) 1K bits in the Y direction 00h 01h 02h
8Mbit CS1
1 block = 128 words x 1K bits = 128K bits
8Mbit CS3
128 words
8Mbit CS2
7Eh 7Fh
Y Address 00h For 3-bit ADPCM 01h 02h A7h A8h A9h
6 bits 6 bits 6 bits
6 bits 6 bits 10 bits
8Mbit CS4
00h FEh FFh For 4-bit ADPCM 8 bits
01h 8 bits
7Eh 8 bits
7Fh 8 bits
90/159
Semiconductor 1.2 Address space allocation in the direct record/playback mode
MSM6688/6688L
In the direct record/playback mode, address control is performed by (X addresses in the word direction) x (1K bit depth in the Y direction). The maximum address of X addresses in the word direction varies depending on the total memory capacity of RAM externally connected. The header 64 words (64K bits) of the RAM are used as the channel index area. Therefore, addresses after X address 0040h can be used as the voice data area.
RSEL2 RSEL1 Total memory capacity No. of words X address L L 4M bits 4K words L L 8M bits 8K words L H 16M bits 16K words H L 24M bits 24K words H H 32M bits 32K words
0000h - 0FFFh 0000h - 1FFFh 0000h - 3FFFh 0000h - 5FFFh 0000h - 7FFFh
The storage method of 1K-bit ADPCM data in the Y direction is identical to that for the flex record/ playback mode. For 3-bit ADPCM data, the storage locations are addressable by 00h-A9h, For 4bit ADPCM data, the storage locations are addressable by 00h-7Fh.
91/159
Semiconductor
Address Space Allocation of RAM (Direct record/playback)
X address (32K words 0000h - 7FFFh, 1 word =1K bits) 1K bits

0000h 003Fh 0040h 1FFFh 2000h 3FFFh 4000h 5FFFh 6000h 7FFFh
MSM6688/6688L
Channel index area (64K words x 1K bits = 64K bits) ADPCM (voice) data area 1K bits in the Y direction 1 word = 1K bits
8Mbit CS1
Y address 00h For 3-bit ADPCM 01h 02h A7h A8h A9h
8Mbit CS2
6 bits 6 bits 6 bits
6 bits 6 bits 10 bits
00h For 4-bit ADPCM 8 bits
01h 8 bits
7Eh 8 bits
7Fh 8 bits
8Mbit CS4
8Mbit CS3
92/159
Semiconductor 2. Channel index area of serial registers 2.1 Channel index area in the flex record/playback mode
MSM6688/6688L
In the flex record/playback mode, the channel index area for one phrase (1K bits) consists of 64Kbit address data, 704-bit user data, and 256-bit address control block table. The address data consists of the number of blocks, stop Y address, stop X address, start block, stop block, and PRED block. In the following, these areas are summarized. (1) Number of blocks: This area stores the number of blocks (recorded time) used for recording of one phrase. Address ch00 stores the number of unused blocks (available blocks). This number of blocks can be read by the BLKRD command. The recorded time for one phase and the unused capacity (available recording time) of memory can be obtained. (2) Stop Y address: This area stores the stop Y address of the phrase. A Y address location is addressable by one of 00h-A9h for 3-bit ADPCM, and by one of 00h-7Fh for 4-bit ADPCM. (3) Stop X address: This area stores the stop X address of a phrase. This X address is offset address of the block. One X address has a 1K-bit memory area. The memory capacity of one block varies depending on the number of serial registers connected externally, and addressing also varies accordingly. (4) Start block and stop block: The total memory capacity of serial registers is equally divided into 256 blocks. Addresses 00h-FFh are assigned to these blocks. The start block and stop block are stored in the start block area and stop block area, respectively.
93/159
Semiconductor
MSM6688/6688L
(5) PRED block: This area stores the address of a block immediately before the stop block. In the flex record/playback mode, each recording area is controlled on a per-block basis. Therefore, a phrase is not always stored continuously in serial registers. For example, if a phrase is recorded in three blocks 03h, 04h and 07h. The PRED block stores 04h. This PRED block is used to change the stop block and stop X address for deleting a tail part of the recorded phrase. (6) User data: This user data area can be used by the user. The data can be written to and read from this area by the CHRW command. This user data area is provided independently for each phrase, so that it is useful to store the sampling frequency, ADPCM bit length and recorded time. (7) Block table: The block table is an area used for the block control.
Block table
256 bits
SPY0 SPY1 SPY2 SPY3 SPY4 SPY5 SPY6 SPY7
SPX0 SPX1 SPX2 SPX3 SPX4 SPX5 SPX6 SPX7
PR0 PR1 PR2 PR3 PR4 PR5 PR6 PR7 (PR0 - PR7) PRED block
SP0 SP1 SP2 SP3 SP4 SP5 SP6 SP7
BL0 BL1 BL2 BL3 BL4 BL5 BL6 BL7
1K-bit depth in the Y direction
User data
704 bits
64 bits
8 bits
Stop block
(SPY0 - SPY7)
(SPX0 - SPX7)
(SP0 - SP7)
Stop Y address
8 bits
Number of blocks
(BL0 - BL7)
Stop Y address
Stop X address
Number of blocks
Address data
Start block
Stop block
64 bits
8 bits
(ST0 - ST7)
Stop X address
8 bits
ST0 ST1 ST2 ST3 ST4 ST5 ST6 ST7
8 bits
Start block
Unused
16 bits
PRED block
8 bits
Lower
Upper
94/159
Semiconductor 2.2 Channel index area in the direct record/playback mode
MSM6688/6688L
In the direct record/playback mode, the channel index area for one phrase (1K bits) consists of 64bit address data and 960-bit user data. The address data consists of the stop Y address, stop X address, start X address, and unused area. (1) Stop Y address: In the same manner as in the direct record/playback mode, the stop address can be specified by one of 00h-A9h for 3-bit ADPCM and 00h-7Fh for 4-bit ADPCM. (2) Start X address and stop X address: An X address is specified by 16 bits (15 effective bits). The 32K-word X address space can be addressed by 000h-7FFFh. (3) User data: In the same manner as in the direct record/playback mode, this user data area can be used by the user. The data can be written to and read from this area by the CHRW command.
95/159
Semiconductor
Depth of 1K bits in the Y direction 64 bit Address data 960 bits User data
64 bits 8 bits Stop Y address 16 bits Stop X address 16 bits Start X address 24 bits Unused
Lower Stop Y address Stop X address Start X address (SPY0 - SPY7) (SPX0 - SPX15) (STX0 - STX15)
Upper
SPY0 SPY1 SPY2 SPY3 SPY4 SPY5 SPY6 SPY7 SPX0 SPX1 SPX2 SPX3 SPX4 SPX5 SPX6 SPX7 SPX8 SPX9 SPX10 SPX11 SPX12 SPX13 SPX14 SPX15 STX0 STX1 STX2 STX3 STX4 STX5 STX6 STX7 STX8 STX9 STaX10 STX11 STX12 STX13 STX14 STX15
MSM6688/6688L
96/159
Semiconductor Data Configuration of External Serial Voice ROMs
MSM6688/6688L
The external serial voice ROMs are composed of (X addresses in the word direction) (depth of 1K bits). The addressing is possible only for X addresses in the word direction. The maximum address of the X addresses in the word direction varies depending on the total memory capacity of the serial voice ROMs externally connected. In the ROM playback by input of address code, the header 16 words (16K bits) are used as the channel index area, so that the addresses after address 010h can be used as the voice data area.
Total memory capacity (Number of ROMs) ROM playback by input of address code Direct ROM playback DTRD command Number of words X address Number of words X address
1M bits (1) 1008 words 010h - 3FFh 1024 words 000h - 3FFh
2M bits (2) 2032 words 010h - 7FFh 2048 words 000h - 7FFh
3M bits (3) 3056 words 010h - BFFh 3072 words 000h - BFFh
4M bits (4) 4080 words 010h - FFFh 4096 words 000h - FFFh
The method for storing the ADPCM data of 1K bits in the Y direction is identical to that for the record/ playback mode. Addressing can be made by 00h-A9h for 3-bit ADPCM and 00h-7Fh for 4-bit ADPCM. When reading data in the serial voice ROMs by the DTRD command, specify the X address and Y address and then perform the read access operation. The address locations can be specified by 000h- FFFh in the same manner as in the ROM playback. The area of 1K bits in the Y direction is equally divided into 16 of 64K bits each, so that addressing can be performed by 0h-Fh.
97/159
Semiconductor
MSM6688/6688L
1M serial voice ROM CS2
,
1k bits 000h 00Fh 010h
Address space allocation of serial voice ROMs.
X address (4K words 000h - FFFh, 1 word = 1K bits)
1M serial voice ROM CS1
Channel index area (required only for ROM playback by input of address code. 16 words x 1K bits = 16K bits) ADPCM (voice) data area
1K bits in the Y direction 1 word = 1K bits
3FFh
400h
Y address 00h 01h 02h A7h A8h A9h
3-bit ADPCM
6 bits 6 bits 6 bits
6 bits 6 bits 10 bits
7FFh 4-bit ADPCM 800h
00h 8 bits
01h 8 bits
7Eh 8 bits
7Fh 8 bits
1M serial voice ROM CS3
0h Read by DTRD command 64 bits
1h 64 bits
2h
Eh
Fh 64 bits
BFFh C00h
1M serial voice ROM CS4
FFFh
98/159
Semiconductor Command Description
MSM6688/6688L
The MSM6688/6688L is controlled by 19 types of commands via D0-D3 pins constituting the data bus and WR, RD, CE, and CE control pins. The state of the MSM6688/6688L can be know by obtaining the contents of the internal status register via the data bus or the output pins. There are four command modes available: mode 0, mode 1, mode 2, and mode 3.. Some commands need to set the command mode before inputting them. The command mode can be selected by setting MOD0 bit and MOD1 bit of the SAMP command.
99/159
Semiconductor 1. Command list
Code
Command
MSM6688/6688L
DDDD 3210 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 1 0 1 (NON OPERATION). (PAUSE). (PLAYBACK). (RECORD). (START). (STOP).
Command function Has no function. Suspends record/playback temporarily. Sets playback mode. Sets recording mode. Starts record/playback. Stops record/playback.
NOP PAUSE PLAY REC START STOP
Stops execution of CHRW, DTRW, DTRD, and EXT commands. SAMP CHAN 0 0 1 1 1 1 0 1 (SAMPLING FREQUENCY). Specifies the command mode and sampling frequency, in conjunction with 1 nibble following this command. (CHANNEL). Specifies a phrase, in conjunction with 2 nibbles following this command. Sets the number of recording blocks (recording time) for the phrase, in conjunction with 2 nibble following this command. Reads the number of blocks (recording time) for the phrase stored in the channel index area, in conjunction with 2 nibbles following this command. During execution of this command, the contents of the status register cannot be read. Stores the start address and the stop address to the channel index area, in conjunction with 10 nibbles following this command. Reads out the start address and the stop address stored in the channel index area, in conjunction with 10 nibbles following this command. During execution of this command, the contents of the status register cannot be read.
BLKWR
1
0
0
0
(BLOCK WRITE).
BLKRD
1
0
0
1
(BLOCK READ).
ADRWR
1
0
0
0
(ADDRESS WRITE).
ADRRD
1
0
0
1
(ADDRESS READ).
100/159
Semiconductor
MSM6688/6688L
Code
Command
DDDD 3210 1010
Command function (CHANNEL READ WRITE). Reads out the user data stored in the channel index area or writes the user data to the channel index area by the read/write access operation following this command. (DATA READ WRITE). Transfers data to or from the external serial registers through the data bus, by the address designation in 5 nibbles following this command and the read/write access operation. (DATA READ). Reads the data in the external serial voice ROMs through the data bus, by the address designation in 5 nibbles following this command and the read/write access operation. (EXTERNAL). Performs record/playback by inputting/outputting ADPCM data through the data bus, in conjunction with the read/write access operation. This command will be used when an SRAM or a hard disk is used for storing voice data. Does not control external serial registers and addresses. (VOICE DETECT SELECT). Selects the ADPCM bit length and voice triggered starting function, in conjunction with 1 nibble following this command. (DELETE). Deletes the phrase specified by the CHAN command. When ch00 is specified by the CHAN command, all phrases are deleted by this command. (LEVEL) Specifies the playback output level and the transition of analog output (AOUT pin) to the DC level, in conjunction of 1 nibble following this command. This level is initialized by the RESET input. (NON OPERATION). Has no function.
CHRW
DTRW
1010
DTRD
1010
EXT
1011
VDS DEL
1100 1101
LEV
1110
NOP
1111
101/159
Semiconductor 2. Command format
MOD1 MOD0 Code DDDD 3210 0000 0001 0010 0011 0100 Mode 0 HEX 0h 1h 2h 3h 4h NOP PAUSE PLAY REC START (Flex record/ playback) STOP SAMP CHAN BLKWR BLKRD CHRW EXT VDS DEL LEV NOP NOP PAUSE PLAY REC START (ROM playback by input of address code) STOP SAMP CHAN BLKWR BLKRD CHRW EXT VDS DEL LEV NOP NOP PAUSE PLAY REC START (Direct record/ playback) STOP SAMP CHAN ADRWR ADRRD DTRW EXT VDS DEL LEV NOP Mode 1 Mode 2 0 0 0 1 1 0
MSM6688/6688L
1 1 Mode 3 NOP PAUSE PLAY REC START (Direct ROM playback)
0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
5h 6h 7h 8h 9h Ah Bh Ch Dh Eh Fh
STOP SAMP CHAN ADRWR ADRRD DTRD EXT VDS DEL LEV NOP
102/159
Semiconductor 3. Command data format
Code
MSM6688/6688L
Command HEX
D3 0 0 0 0 0 0 1st nibble 2nd nibble 0
D2 0 0 0 0 1 1 1
D1 0 0 1 1 0 0 1 SA1
D0 0 1 0 1 0 1 0 SA0 1-nibble command 1-nibble command 1-nibble command 1-nibble command 1-nibble command 1-nibble command 2-nibble command
Note
NOP PAUSE PLAY REC START STOP SAMP
0h 1h 2h 3h 4h 5h 6h
MOD1 MOD0
Command mode, sampling frequency
MOD1 MOD0 Command mode 0 0 1 1 0 1 0 1 Mode 0 Mode 1 Mode 2 Mode 3
SA1 0 0 1 1
SA0 0 1 0 1
Sampling frequency fosc/1024 (4.0kHz) fosc/768 (5.3kHz) fosc/640 (6.4kHz) fosc/512 (8.0kHz)
Values in parentheses are for fosc = 4.096 MHz. CHAN 7h 1st nibble 2nd nibble 3rd nibble 0 CA3 CA7 1 CA2 CA6 1 CA1 CA5 1 CA0 CA4 3-nibble command Phrase No.
CA7 0 0 0 0
CA6 0 0 0 0
CA5 0 0 0 0
CA4 0 0 0 0
CA3 0 0 0 0
CA2 0 0 0 0
CA1 0 0 1 1
CA0 0 1 0 1
Phrase No. ch00 ch01 ch02 ch03
1 1
1 1
1 1
1 1
1 1
1 1
1 1
0 1
chFE chFF
103/159
Semiconductor
MSM6688/6688L
Command HEX
Code
D3 1st nibble 2nd nibble 3rd nibble 1 BL3 BL7 1 BL3 BL7 1
D2 0 BL2 BL6 0 BL2 BL6 0
D1 0 BL1 BL5 0 BL1 BL5 0
D0 0 BL0 BL4 1 BL0 BL4 0 11-nibble command Stop Y address 3-nibble command Number of blocks 3-nibble command Number of blocks
Note
BLKWR
8h
BLKRD
9h
1st nibble 2nd nibble 3rd nibble
ADRWR
8h
1st nibble 2nd nibble 3rd nibble 4th nibble 5th nibble 6th nibble 7th nibble 8th nibble 9th nibble
SPY3 SPY2 SPY1 SPY0 SPY7 SPY6 SPY5 SPY4 SPX3 SPX2 SPX1 SPX7 SPX6 SPX5 SPX11 SPX10 SPX9
SPX0 Stop X address SPX4 SPX8
SPX15 SPX14 SPX13 SPX12 STX3 STX7 STX2 STX6 STX1 STX5 STX0 STX4 STX8 Start X address
10th nibble STX11 STX10 STX9
11th nibble STX15 STX14 STX13 STX12 ADRRD 9h 1st nibble 2nd nibble 3rd nibble 4th nibble 5th nibble 6th nibble 7th nibble 8th nibble 9th nibble 1 0 0 1 11-nibble command Stop Y address
SPY3 SPY2 SPY1 SPY0 SPY7 SPY6 SPY5 SPY4 SPX3 SPX2 SPX1 SPX7 SPX6 SPX5 SPX11 SPX10 SPX9
SPX0 Stop X address SPX4 SPX8
SPX15 SPX14 SPX13 SPX12 STX3 STX7 STX2 STX6 STX1 STX5 STX0 STX4 STX8 Start X address
10th nibble STX11 STX10 STX9
11th nibble STX15 STX14 STX13 STX12
104/159
Semiconductor
MSM6688/6688L
Command HEX
Code
D3 1 1st nibble 2nd nibble 3rd nibble 4th nibble 5th nibble 6th nibble 1 0 X3 X7 X11 X15 1 Y3 X3 X7 X11 0 1 1st nibble 2nd nibble 1 0
D2 0 0 0 X2 X6 X10 X14 0 Y2 X2 X6 X10 0 0 1 BIT
D1 1 1 0 X1 X5 X9 X13 1 Y1 X1 X5 X9 0 1 0 VD1
D0 0 0 0 X0 X4 X8 X12 0 Y0 X0 X4 X8 0 1 0 Dummy nibble
Note 1-nibble command + read/write access + STOP command 6-nibble command + read/write access + STOP command Dummy nibble X address
CHRW DTRW
Ah Ah
DTRD
Ah
1st nibble 2nd nibble 3rd nibble 4th nibble 5th nibble 6th nibble
6-nibble command + read access + STOP command Y address X address
EXT VDS
Bh ch
1-nibble command + read/write access + STOP command 2-nibble command
VD0 ADPCM bit length, voice triggered starting condition
BIT ADPCM bit length VD1 0 1 3 bits 4 bits 0 0 1 1 0 1 0 1 VD0
Voice detection level VVDS
MSM6688 (5 V version) Voice triggered starting disabled VDD/64 (80mV)* VDD/32 (160mV)* VDD/16 (320mV)* MSM6688L (3 V version) Voice triggered starting disabled VDD/128 (24mV)** VDD/64 (48mV)** VDD/32 (96mV)**
* Values in parentheses are for VDD = 5.12 V. ** Values in parentheses are for VDD = 3.072 V.
105/159
Semiconductor
MSM6688/6688L
Command HEX
Code
D3 1
D2 1
D1 0
D0 1 1-nibble command
Note
DEL
Dh
ch00: Deletion of all phrases ch01 - chFF: Deletion of a specified phrase LEV Eh 1st nibble 2nd nibble 1 LV1 1 LV0 1 PN1 0 PN0 2-nibble command Playback level, transition to DC level
LV1 0 0 1 1
LV0 0 1 0 1
Playback level 0dB 0dB -6dB -12dB
PN1 0 0 1 1
PN0 0 1 0 1
Transition to DC level Disabled Disabled Transition from GND to 1/2 VDD. Transition from 1/2 VDD to GND.
NOP
Fh
1
1
1
1
1-nibble command
106/159
Semiconductor
MSM6688/6688L
4. Relationship between record/playback control modes and commands
Record/ playback Flex record/ ROM playback Direct record/ Direct ROM by input of mode playback playback playback address code Command NOP PAUSE PLAY REC START STOP SAMP Command mode Sampling frequency CHAN BLKWR BLKRD ADRWR ADRRD CHRW DTRW DTRD EXT VDS ADPCM bit length Voice triggered starting condition DEL Deletion of all phrases Deletion of a specified phrase LEV Note: : Required command : Effective command -- : Unnecessary command -- -- -- -- Data transfer command Data transfer command Data transfer command -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
EXT command record/playback -- --
107/159
Semiconductor Status Register
MSM6688/6688L
The status register used in the MSM6688/6688L is a 4-bit status register. When a low level is applied to the RD pin, the contents of the status register are output to D0-D3 pins to indicate the internal state of the MSM6688/6688L. The contents of the status register are also output to the BUSY, RPM, VPM, and NAR pins.
D3 NAR D2 VPM D1 RPM D0 BUSY
(1) BUSY bit The BUSY bit set to a high level indicates that the MSM6688/6688L is executing RESET operation or command processing operation. When BUSY bit is high, do not input any command from the microcontroller. While any of data read commands is being executed, the state of the BUSY bit cannot be verified by inputting the RD pulse. In this case, input a read command either after waiting a time longer than the duration of BUSY state or after verifying the end of the busy state by the BUSY pin. While the RESET operation is being executed, the BUSY bit is set to a high level, and it returns to a low level after the end of the RESET operation. After a high level pulse is applied to the RESET pin to perform the RESET operation, the BUSY bit is set to a high level during execution of the RESET operation. It goes to a low level after the end of the RESET operation. (2) RPM bit The RPM bit goes to a high level during record/playback operation. While the RPM bit is high, do not input any command except those indicated below. Otherwise, the state of the MSM6688/6688L becomes undefined. NOP, PAUSE, STOP commands, START command for release of temporary stop and playback of next phrase, CHAN command for specifying the next phrase during playback and LEV command for designation of playback output level. After a high level pulses is applied to the RESET pin to perform the RESET operation, the RPM bit goes to a low level that is the initial state.
108/159
Semiconductor (3) VPM bit
MSM6688/6688L
The VPM bit goes to a high level during standby for voice after start of the voice triggered recording and during the time that record/playback is temporarily stopped by the PAUSE command. When the VPM bit is high, do not apply any command except the STOP command and the START command for release of temporary stop. Otherwise, the state of the MSM6688/6688L becomes undefined. After a high level pulse is applied to the RESET pin to perform the reset operation, the VPM bit goes to a low level that is the initial state. (4) NAR bit The NAR bit indicate the enabled or disabled state for phrase designation. When this bit is high, the phrase designation by the CHAN command is enabled. If it is desired to play back different phrases continuously during ROM playback, specify the next phrase and input the START command after verifying that the NAR bit becomes high. After a high level pulse is applied to the RESET pin to perform the reset operation, the NAR bit goes to a high level that is the initial state.
109/159
Semiconductor
MSM6688/6688L
BUSY causing conditions Release of reset operation Input of 1-nibble command Input of 2-nibble command Input of 3-nibble command Input of 2-nibble or 3-nibble command data BLKRD command Input of command Output of block data ADRWR command Input of command Input of address data ADRRD command Input of command Output of address data CHRW command Input of command Input of REC command Input of write data Input of PLAY command Input of STOP command DTRW and DTRD commands Input of command Input of address (2nd ~ 5th nibbles) Input of address (6th nibble) Input of REC command Input of write data Input of PLAY command Input of STOP command Input of DEL command (all phrases) Input of DEL command (a specified phrase)
Symbol tREX tB1 tB2 tB3 tBD
BUSY state duration (Note 2) 1 ms 16 ms 16 ms 16 ms 16 ms
BUSY bit verification Possible Possible Possible Possible Possible
Note Input of RESET pulse NOP, PAUSE, PLAY, REC, START, STOP SAMP, VDS, LEV CHAN, BLKWR SAMP, VDS, LEV, CHAN, BLKWR
tWBR tWDR
270 ms 50 ms
Impossible Impossible
tBAW tBAD
270 ms 50 ms
Possible Possible
tWAR tWDR
270 ms 50 ms
Impossible Impossible
tWCRW tWRC tWWD tWPL tWSP
770 ms 16 ms 50 ms 50 ms 50 ms
Possible Possible (Note 1) Possible (Note 1) Impossible Possible (Note 1)
tWRW tWA1 tWA2 tWRC tWWD tWPL tWSP tWBLA tWBL1
16 ms 16 ms 270 ms 16 ms 50 ms 50 ms 50 ms 550 ms 70 ms
Possible Possible Possible Possible (Note 1) Possible (Note 1) Impossible Possible (Note 1) Possible Possible
110/159
Semiconductor
MSM6688/6688L
Note: 1. The BUSY state can be verified by the BUSY bit when only the data write access operation is executed after the CHRW or DTRW command is input. 2. The BUSY state duration after release of RESET operation includes the oscillation startup stabilization time. This oscillation startup stabilization time is several tens of milliseconds for crystal oscillators and is several hundreds of microseconds for ceramic oscillators.
111/159
Semiconductor Inputting the Commands
MSM6688/6688L
To input a command or data, apply the command or data to D0-D3 pins and then apply a low level pulse (WR pulse) to the WR pin. By inputting a low level pulse (RD pulse) to the RD pin, the contents of the status register or data will be output via D0-D3 pins. The CE pin is used to enable or disable the WR pulse and RD pulse. When a low-level is applied to this CE pin, the enable state is present, so that WR and RD pulses can be accepted. When a high level is applied to this CE pin, the disable state is present, so that WR and RD pulses cannot be accepted and, at the same time, D0-D3 pins are placed in the high-impedance state. The CE pin also has the same function as the CE pin. However, when high, this CE pin gives the enable state for the WR and RD pulses, and when low, it gives the disable state. When D0-D3 pins are used exclusively for the MSM6688/6688L, CE and CE pins can be fixed to a low level and a high level, respectively. An equivalent circuit of the microcontroller interface section of the MSM6688/6688L is shown below.
112/159
Semiconductor
MSM6688/6688L
Status register 4 NAR VPM RPM BUSY 4 D0 - D3 4 4 SEL 4 4 Data DQ LD RD pulse WR pulse 4 Q
RD WR
CE CE
PDWN RESET
113/159
Semiconductor The steps for inputting the commands are described below.
MSM6688/6688L
(1) Output the contents of the status register by applying the RD pulse (namely, by applying a low level pulse to the RD pin). Verify that the BUSY bit is 0. If the BUSY bit is 1, input the RD pulse repeatedly until the BUSY bit goes to 0. The BUSY state can also be verified through the BUSY pin. (2) Set a command to D0-D3 pin and input the WR pulse.
(3) In case of a 2-nibble or 3-nibble command, verify that the BUSY bit of the status register is 0 in the same way as in (1). Then, set the command data to D0-D3 pins and input the WR pulse. In this case, the WR pulse can also be input after the waiting time that is longer than the BUSY state duration, instead of verifying the BUSY bit of the status register.
CE CE (I) (I) (I) (I)

WR RD D0 - D3 (I/O) Status output Command input Status output BUSY (O) Busy state duration
Next command data can be input
114/159
Semiconductor 1. Inputting a 2-nibble command
MSM6688/6688L
Input RD pulse No
Status output
BUSY=0? Yes Input WR pulse
Verification of BUSY bit
Input of the 1st nibble command
Input RD pulse No
Status output
BUSY=0? Yes Input WR pulse
Verification of BUSY bit (or waiting for BUSY state duration) Input of the 2nd nibble data
115/159
Semiconductor Changes of Record/Playback Conditions
Record/playback condition POWER ON Record/playback mode Undefined RESET input PDWN input Unchanged (Note 1) Unchanged (Note 1) Unchanged (Note 1) Unchanged (Note 1) Unchanged (Note 1) Unchanged (Note 1) Unchanged (Note 1) 0dB Unchanged (Note 1) Unchanged
MSM6688/6688L
Command input REC command AE Record mode PLAY command AE Playback mode Set by SAMP command Set by SAMP command Set by CHAN command Set by BLKWR command Set by VDS command Set by VDS command Set by LEV command --
Command mode Sampling frequency Phrase No. Number of phrase recording blocks ADPCM bit length Voice triggered starting Playback level Data in serial registers
Undefined Undefined Undefined Undefined Undefined Undefined Undefined Undefined
Unchanged Unchanged Unchanged Unchanged Unchanged Unchanged Unchanged Unchanged
Note: 1. RESET is performed without synchronization with the clock. When the RESET pulse is input during standby for commands, record/playback condition will not be changed. When the RESET pulse is input during execution of a command, all record/playback conditions may be changed and the data may become undefined.
116/159
Semiconductor Setting and Confirming the Record/Playback Conditions
MSM6688/6688L
1. Specifying the control mode for record/playback (by the SAMP command) Specify the control mode for record/playback by setting the command mode (using MOD1 and MOD0 bits) as shown in the following table.
MOD1 0 0 1 1 MOD0 0 1 0 1 Command Control mode for record/playback mode Mode 0 Mode 1 Mode 2 Mode 3 Flex record/playback ROM playback by input of address code Direct record/playback Direct ROM playback
2. Specifying the sampling frequency (by the SAMP command) Specify the sampling frequency by setting SA0 and SA1 bit data of the SAMP command. The relationship between the master oscillator frequency (fosc), and sampling frequency (fSAMP) depends on the SA0 and SA1 bit data of the SAMP command as shown in the following table.
SA1 0 0 1 1
SA0 0 1 0 1
Sampling frequency fsamp fosc/1024 (4.0kHz) fosc/768 (5.3kHz) fosc/640 (6.4kHz) fosc/512 (8.0kHz) ( ) Values in parentheses are for fosc=4.096MHz.
117/159
Semiconductor 3. Specifying the ADPCM bit length (by the VDS command)
MSM6688/6688L
Specify the ADPCM bit length by setting the BIT bit data of the VDS command as shown in the following table.
BIT 0 1 ADPCM bit length 3 bits 4 bits
4. Specifying the voice triggered starting (by the VDS command) This MSM6688/6688L has the voice triggered starting function that starts recording when the level of voice input exceeds a preset amplitude. Using the voice activated function, the unvoiced part prior to voice detection will not be recorded, so that the memory capacity can be utilized efficiently. The unvoiced parts in the middle of recording are not eliminated. In the voice triggered starting mode, recording is started when a voice input exceeds the preset thresholds. Therefore, a consonant part with a low level may not be recorded.
Voice input level (ADIN pin) 1/2VDD
Upper threshold +Vvds -Vvds Lower threshold
Identified as voice and recording start
Start signal input
118/159
Semiconductor
MSM6688/6688L
Specify the enable/disable of the voice triggered starting function and the voice detection level by VD0 and VD1 bit data of the VDS command as shown in the following table.
VD1 VD0 Voice detection level, Vvds MSM6688 (5 V version) 0 0 1 1 0 1 0 1 Voice triggered starting disabled VDD/64 (80mV)* VDD/32 (160mV)* VDD/16 (320mV)* MSM6688L (3 V version) Voice triggered starting disabled VDD/128 (24mV)** VDD/64 (48mV)** VDD/32 (96mV)**
* Values in parentheses are for VDD=5.12 V. ** Values in parentheses are for VDD=3.072 V. During standby for voice, the VPM bit of the status register is 1. This bit returns to 0 at the start of recording after detection of voiced signal. The RPM bit is 1 during standby for voice and during recording.
WR D0 - D3 START command Status register RPM bit VPM bit Standby for recording Standby for voice Recording in progress Identified as voice Standby for recording STOP command
When the STOP command is input during standby for voice, standby for voice will be finished and changed to standby for recording, If in the flex record/playback mode, the STOP command is input during standby for voice, the contents of the specified phrase will be deleted.
WR D0 - D3 START command Status register RPM bit VPM bit Standby for recording Standby for voice Standby for recording STOP command
119/159
Semiconductor 5. Specifying a phrase (by the CHAN command)
MSM6688/6688L
Specify a phrase by CA0-CA7 bit data of the CHAN command as shown in the following table.
Phrase No. ch00 ch01 ch02 Enable (63 phrases) 0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 1 0 1 ch3E ch3F ch40 ch41 Inhibit 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 chFE chFF Inhibit Inhibit Enable (255 phrases) Enable (64 phrases) Enable (Note 2) Flex record/ ROM playback Direct record/ Direct ROM by input of playback playback playback address code (Note 1) Disabled
CA7 CA6 CA5 CA4 CA3 CA2 CA1 CA0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0
Note: 1. In the flex record/playback mode, ch00 cannot be used for recording/playback. This is a special phrase only used for deletion of all phrases and control of unused blocks. 2. In the direct ROM playback mode, playback will be started after transferring the address data to the channel index area of the serial registers. Therefore, it is required for direct ROM playback to use a phase unused for record/playback operation. Normally, phrase ch3FH is used as the phrase dedicated for direct ROM playback.
120/159
Semiconductor
MSM6688/6688L
6. Specifying the number of phrase recording blocks (by the BLKWR command) In the flex record/playback mode, set the number of blocks before starting the recording to specify the recording time for a phrase. In this mode, the total memory capacity of serial registers connected externally is divided equally into 256 blocks. Therefore, the memory capacity of one block varies depending on the number of serial registers connected externally. For example, when one 8M bit serial register is connected and recording is performed by 4-bit ADPCM and 8-kHz sampling, the memory capacity of one block and the recording time of one block are obtained as follows. 8M bits = 32K bits 256 Memory capacity of one block Recording time/block = Sampling frequency ADPCM bit length Memory capacity of one block = = 32 1024 bits 8000 Hz 4 bits = Approximately 1 second
If it is desired to make recording for 10 seconds on a phrase in this example, 10 (0Ah) phrase recording blocks are required.
121/159
Semiconductor
MSM6688/6688L
The number of phrase recording blocks can be specified by the BLKWR command and is stored in the (corresponding) register in the MSM6688/6688L. The BLKWR command is enabled for command mode 0 or 1. Therefore, before inputting this BLKWR command, it is required to set the corresponding command mode using the SAMP command.
Number of phrase recording blocks (HEX) Input inhibit 1 (01h) 2 (02h) 3 (03h)
BL7 0 0 0 0
BL6 0 0 0 0
BL5 0 0 0 0
BL4 0 0 0 0
BL3 0 0 0 0
BL2 0 0 0 0
BL1 0 0 1 1
BL0 0 1 0 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
0 1
254 (FEh) 255 (FFh)
7. Reading the number of phrase recording blocks (by the BLKRD command) The number of blocks for each phrase stored in the channel index area can be read by the read access operation using the BLKRD command and two nibbles following this BLKRD command. In the flex record/playback mode, the number of blocks (namely, the recording time) of the specified phrase can be obtained. In the BLKRD command, the number of blocks is specified by a binary number consisting of BL0-BL7 in the same way as in the BLKWR command. Before inputting the BLKRD command, the command mode must be set to either mode 0 or mode 1 by using the SAMP command. (1) When ch00 phrase is specified: The number of unused blocks (or available blocks) is stored in address ch00 of the channel index area. Therefore, the unused and available memory capacity (or available recording time) can be obtained. (2) When one of ch01-ch3F is specified as a phrase: The number of blocks (or recording time) used by the specified phrase can be obtained.
122/159
Semiconductor BLKRD command flow chart
MSM6688/6688L
SAMP command
Setting of common mode to mode 0 or mode 1 (MOD0, MOD1) Phrase designation (CA0 - CA7)
CHAN command
1st nibble BLKRD command 2nd nibble Wait for BUSY state duration Input RD pulse 3rd nibble Wait for BUSY state duration Input RD pulse Output of upper 4 bits of the number of blocks Output of lower 4 bits of the number of blocks
Wait for BUSY state duration
During execution of the BLKRD command, verification of the status register cannot be performed by input of the RD pulse. When inputting the RD pulse for the 2nd nibble or 3rd nibble or inputting the next command after the BLKRD command, input the RD pulse either after the waiting time longer than the BUSY state duration or after verifying that the BUSY status is not present via the BUSY pin.
123/159
Semiconductor
MSM6688/6688L
8. Inputting/outputting the address data (by the ADRWR/ADRRD command) In the direct record/playback mode or direct ROM playback, input the start address and stop address of a phrase directly into the channel index area in the RAM by the ADRWR command. The ADRRD command is used to read the address data stored in the channel index area. The header 40 bits of each phrase of the channel index area can be accessed by the ADRWR or ADRRD command. In the flex record/playback mode, these commands can be used to change the address data for deleting the tail part of a recorded phrase.
Direct record/playback and direct ROM playback D3 1st nibble 2nd nibble 3rd nibble 4th nibble 5th nibble 6th nibble 7th nibble 8th nibble 9th nibble 1 D2 0 D1 0 D0 Contents Command D3 1 BL3 BL7 Flex record/playback D2 0 BL2 BL6 D1 0 BL1 BL5 D0 Contents Command Number of blocks
*
*
BL0 BL4
SPY3 SPY2 SPY1 SPY0 Stop Y address SPY7 SPY6 SPY5 SPY4 SPX3 SPX2 SPX1 SPX0 Stop X address SPX7 SPX6 SPX5 SPX4 SPX11 SPX10 SPX9 SPX8 SPX15 SPX14 SPX13 SPX12 STX3 STX2 STX1 STX0 Start X address STX7 STX6 STX5 STX4 STX8
SPY3 SPY2 SPY1 SPY0 Stop Y address SPY7 SPY6 SPY5 SPY4 SPX3 SPX2 SPX1 SPX0 Stop X address SPX7 SPX6 SPX5 SPX4 SP3 SP7 PR3 PR7 SP2 SP6 PR2 PR6 SP1 SP5 PR1 PR5 SP0 SP4 PR0 PR4 PRED block Stop block
10th nibble STX11 STX10 STX9
11th nibble STX15 STX14 STX13 STX12
Note: When the address data is input by the ADRWR command in the direct ROM playback mode, the 7th nibble and the 11th nibble are dummy nibbles. Therefore, input 0h data into SPX12-SPX15 (7th nibble) and STX12-STX15 (11th nibble).
124/159
Semiconductor ADRWR command flow chart
MSM6688/6688L
SAMP command
Setting of command mode to mode 2 or mode 3 (MOD = 1)
CHAN command
Phrase designation(CA0 - CA7)
1st nibble ADRWR command 2nd nibble Input of command after verification of BUSY state
BUSY = 0? Input WR pulse
BUSY bit verification (or waiting for BUSY state duration or longer) Input of address data
3rd nibble
4th nibble
10th nibble
11th nibble
BUSY = 0? Input WR pulse
Verification of address data
125/159
Semiconductor ADDRD command flow chart
MSM6688/6688L
SAMP command
Setting of command mode to mode 2 or mode 3 (MOD0, MOD1)
CHAN command 1st nibble ADRRD command 2nd nibble Wait for BUSY state duration Input RD pulses
Phrase designation (CA0 - CA7)
Input of command after verification of BUSY state
Output of address data
3rd nibble
4th nibble
10th nibble
11th nibble Wait for BUSY state duration Input RD pulse Output of address data
Wait for BUSY state duration
126/159
Semiconductor
MSM6688/6688L
During execution of the ADRRD command, verification of the status register cannot be performed by input of the RD pulse. When inputting the RD pulse for the 2nd nibble to 11th nibbles or inputting the next command after the ADRRD command, input the RD pulse either after the waiting time longer than the BUSY state duration or after verifying that the BUSY status is not present via the BUSY pin.
9. Specifying the playback level (by the LEV command) For playback, one of three output levels 0 dB, -6 dB and -12 dB can be selected. The playback level can be specified by LV0 and LV1 bit data of the LEV command. If the LEV command is input during playback operation, the playback level will be changed at the moment when the command is input. When the RESET pulse is input, the playback output level is set 0 dB that is the initial state.
LV1 0 0 1 1 LV0 0 1 0 1 0dB 0dB -6dB -12dB Playback level (equal to the voice data amplitude) (equal to the voice data amplitude) (one-half of the voice data amplitude) (one-fourth of the voice data amplitude)
127/159
Semiconductor Flex Record/Playback Method 1. Deleting phrases 1.1 Deleting all phrases
MSM6688/6688L
To delete all phrases, specify ch00 by the CHAN command and input the DEL command. When all phrases are deleted in this manner, "0" data is written into ch01-ch3F addresses of the channel index area of the serial registers to place these addresses in the unrecorded state. The initial data for address control is written in ch00 address. Therefore, whenever the power is turned on, always perform the deletion of all phrases after inputting the RESET pulse. The deletion of all phrases causes the user data area ch00-ch3F to be cleared to all 0s. Note that when the data was transferred to the channel index area by the CHRW command, this data is deleted by the deletion of all phrases.
State of the channel index area Phrases No. Address data ch00: ch01-ch3F Initial data User data Cleared to all 0s Cleared to all 0s Block table Initial data
1.2 Deleting a specified phrase To delete a specified phrase, specify one of ch0-ch3F by the CHAN command and input the DEL command. The deleted phrase is placed in the unrecorded state. The channel index area for the specified phrase, including the user data, is cleared to all 0s. The data stored in ch00 address for control of unused blocks is updated. Phrase deletion flow chart
CHAN command
ch00 Deletion of all phrases ch01 - ch3F: Deletion of a specified phrase
DEL command
128/159
Semiconductor 2. Method of recording in the flex record/playback mode 2.1 When only an 8M-bit serial register is used
MSM6688/6688L
(1) Before starting the recording operation in the flex record/playback mode, always perform the deletion of all phrases after turning power on and resetting the MSM6688 by input of the RESET pulse. Otherwise, the address control cannot be performed correctly. (2) Input the record/playback conditions by the corresponding commands as follows. Specify the ADPCM bit length (BIT) and voice triggered starting (VD0, VD1). SAMP command: Set the command mode to mode 0 (MOD0 = 0, MOD1=0) and specify the sampling frequency (SA0, SA1). CHAN command: Select phrases (CA0 - CA5) from one of 63 phrases ch01-ch3F. BLKWR command: Specify the number of phrase recording blocks (BL0-BL7) REC command: Set to the recording mode. (3) Input the START command to start recording (4) When the number of blocks specified by the BLKWR command is reached or when all available blocks are used for recording, recording is finished. The end of recording can be verified by the RPM bit of the status register. (5) To stop recording in the middle, input the STOP command. The contents of the block counter and the contents of the address counter at this moment are automatically stored in the channel index area as the stop block and the stop address, respectively. In this case, make sure that recording is finished by examining the RPM bit before inputting the next command. (6) To continue recording, specify the record/playback conditions to be modified by the corresponding commands and perform the steps (3)-(5). VDS command:
129/159
Semiconductor Flow chart of flex recording in the record/playback mode
MSM6688/6688L
CHAN command
Specify ch00.
DEL command
Delete all phrases.
VDS command
ADPCM bit length (BIT) Voice triggered starting (VD0, VD1) Set the command mode to mode 0 (MOD0 =0, MOD1 = 0). Specify the sampling frequency (SA0, SA1). Select one of 63 phrases (CA0 - CA5).
SAMP command
CHAN command
BLKWR command
Set the phrase recording time (BL0 - BL7).
REC command
Set the recording mode.
START command
Start of recording
No
RPM = 1? Yes
Verify the start of recording.
Input record/playback conditions to be modified by the corresponding commands. No
RPM = 0? No Stop recording? Yes STOP command
Yes
Verify the end of recording.
Stop of recording
No
RPM = 0? Yes
Verify the end of recording.
Yes
Continue recording? No
130/159
Semiconductor 2.2 When 4M-bit serial register is used
MSM6688/6688L
This IC's memory capacity is divided into 256 blocks for address management. This allows the connection of an 8M-bit serial register only. When connecting a 4M-bit serial register, set pins RSEL1 and RSEL2 as if only an 8M-bit serial register were connected. Then, for actual usage, the 8M-bit serial register is replaced by a 4M-bit serial register. Replacement by the 4M-bit serial register results in the occurrence of an address area prohibited from being used. Thus, the CPU must control the address area so that it is not accessed. The recording procedure is almost the same as for using only an 8M-bit serial register. Before recording, however, the number of available blocks must be determined, and a number of blocks that does not exceed that value must be set each time by the BLKWR command. The following gives the procedure for this setting.
BLKRD command
Read the number of remaining blocks.
Calculate the number of available blocks [(Number of remaining blocks) - (number of blocks for 4M bits)]
Calculated by the CPU.
BLKWR command
Set a value not more than the number of available blocks as the number of phrase recording blocks.
The following example provides the number of blocks available when one 4M-bit serial register is connected and the erasure of all phrases is followed by the first recording.
(Number of available blocks) = (number of remaining blocks) - (number of blocks for 4M bits) 4M bits = (number of remaining blocks) - memory capacity for one block 4M bits = 254 - 32K bits = 254 - 128 = 126 (7Eh)
131/159
Semiconductor
MSM6688/6688L
The following table provides the memory configurations available when a 4M-bit serial register is used for flex record/playback.
RSEL2 RSEL1 CS1 Serial register and corresponding CS signal CS3 CS4 Total memory capacity Memory capacity per block Number of blocks for 4M bits Initially available block (when only an 8M-bit serial register is used) CS2
L L 4Mbit -- -- -- 4Mbit 1 32Kbit 128 (80h) 126 (7Eh) [254 (FEh)]
L H 8Mbit 4Mbit -- -- 12Mbit 2 64Kbit 64 (40h) 191 (BFh) [255 (FFh)]
H L 8Mbit 8Mbit 4Mbit -- 20Mbit 3 128Kbit 32 (20h) 159 (9Fh) [191 (BFh)]
H H 8Mbit 8Mbit 8Mbit 4Mbit 28Mbit 4 128Kbit 32 (20h) 223 (DFh) [255 (FFh)]
132/159
Semiconductor 3. Playback method in the flex record/playback mode
MSM6688/6688L
(1) Input the record/playback conditions by the corresponding commands as follows. VDS command: Specify the ADPCM bit length (BIT) The voice triggered starting (VD0, VD1) is invalid for the playback operation. SAMP command: Set the command mode to mode 0 (MOD0 = 0, MOD1= 0) and specify the sampling frequency (SA0, SA1). CHAN command: Select one of 63 phrases ch01-ch3F (CA0-CA5). LEV command: Specify the playback output level (LV0, LV1). PLAY command: Set to the playback mode.
(2) Input the START command to start the playback. The MSM6688/6688L fetches the contents of the block table and the stop address of the specified phrase from the channel index area and starts the playback operation. (3) When the contents of the address counter coincide with the contents of the stop address register, playback is finished. The end of playback is verified by the RPM bit of the status register. (4) To stop playback in the middle, input the STOP command. In this case, make sure that playback is finished by examining the RPM bit before inputting the next command. (5) To continue playback, specify the record/playback conditions to be modified by the corresponding commands and perform steps (2)-(4).
133/159
Semiconductor Flow chart of playback in the flex record/playback mode
MSM6688/6688L
VDS command
ADPCM bit length (BIT) Set the command mode to mode 0 (MOD0 = 0, MOD1 = 0). Specify the sampling frequency (SA0, SA1). Select one of 63 phrases (CA0 - CA5)
SAMP command
CHAN command
LEV command
Set playback output level (LV0, LV1). Set to the playback mode.
PLAY command
START command
Start of playback
No
RPM = 1? Yes
Verify the start of playback.
Input record/playback conditions to be modified by the corresponding commands. No
RPM = 0? No Stop playback? Yes STOP command
Yes
Verify the end of playback.
STOP of playback
No
RPM = 0? Yes
Verify the end of playback.
Yes
Continue playback? No
This flow chart can apply to the playback operation in the direct record/playback mode, excluding that the command mode is set to mode 2 by the SAMP command and one of 64 phrases (ch00-ch3F) can be selected by the CHAN command in the direct record/playback mode.
134/159
Semiconductor Direct Record/Playback Method 1. Recording method in the direct record/playback mode
MSM6688/6688L
(1) Input the record/playback conditions by the corresponding commands as follows. VDS command: Specify the ADPCM bit length (BIT) and voice triggered starting (VD0, VD1). SAMP command: Set the command mode to mode 2 (MOD = 0, MOD = 1) and specify the sampling frequency (SA0, SA1). CHAN command: Select one of 64 phases ch00-ch3F (CA0-CA5). ADRWR command: Input the start address and the stop address. REC command: Set to the recording mode.
(2) Input the START command to start the recording. The MSM6688/6688L fetches the start address and the stop address of the specified phrase input by the ADRWR from the channel index area and stores them in the address counter and the stop address register, respectively. Then it starts recording. (3) When the contents of the address counter coincide with the contents of the stop address register, recording is finished. Verity the end of recording by the RPM bit of the status register. (4) To stop recording in the middle, input the STOP command. In this case, the contents of the address counter is automatically stored in the channel index area as a new stop address. Make sure that recording is finished by examining the RPM bit before inputting the next command. (5) To continue recording, specify the record/playback conditions to be modified by the corresponding commands and perform steps (2)-(4).
135/159
Semiconductor Flow chart of recording in the direct record/playback mode
MSM6688/6688L
VDS command
ADPCM bit length (BIT) Voice triggered starting (VD0, VD1) Set the command mode to mode 2 (MOD0 = 0, MOD1 = 1). Specify the sampling frequency (SA0, SA1). Select one of 64 phrases (CA0 - CA5).
SAMP command
CHAN command
ADRWR command
Input the start address and stop address. Set the recording mode.
REC command
START command
Start of recording
No
RPM = 1? Yes
Verify the start of recording.
Input record/playback conditions to be modified by the corresponding commands. No
RPM = 0? No Stop recording? Yes STOP command
Yes
Verify the end of recording.
Stop of recording.
No
RPM = 0? Yes
Verify the end of recording.
Yes
Continue recording? No
136/159
Semiconductor 2. Playback method in the direct record/playback mode
MSM6688/6688L
The playback method in the direct record/playback mode is similar to that in the flex record/ playback mode, excepting that in the direct playback mode, the command mode is specified to mode 2 by the SAMP command and a phrase can be selected from a total of 64 phrases (ch00~ch3F)by the CHAN command. (1) Input the record/playback conditions by the corresponding commands as follows. VDS command: Specify the ADPCM bit length (BIT) The voice triggered starting (VD0, VD1) is invalid for the playback operation. SAMP command: Set the command mode to mode 2 (MOD = 0, MOD = 1) and specify the sampling frequency (SA0, SA1). CHAN command: Select one of 64 phrases ch00-ch3F (CA0-CA5). LEV command: Specify the playback output level (LV0, LV1). PLAY command: Set the playback mode.
(2) Input the START command to start the playback. The MSM6688/6688L fetches the start address and the stop address of the specified phrase from the channel index area and stores them in the address counter and the stop address register, respectively. Then it starts the playback operation. (3) When the contents of the address counter coincide with the contents of the stop address register, playback is finished. The end of playback is verified by the RPM bit of the status register. (4) To stop playback in the middle, input the STOP command. In this case, make sure that playback is finished by examining the RPM bit before inputting the next command. (5) To continue playback, specify the record/playback conditions to be modified by the corresponding commands and perform steps (2)-(4). For the flow chart, refer to the flow chart of record/playback in the flex record/playback mode.
137/159
Semiconductor ROM Playback by Inputting Address Code 1. Method of inputting commands
MSM6688/6688L
(1) Input the record/playback conditions by the corresponding commands as follows. SAMP command: Set the command mode to mode 1 (MOD0 = 1, MOD1= 0). The sampling frequency (SA0, SA1) is invalid. CHAN command: Select one of 255 phrases ch01-chFF (CA0-CA7). LEV command: Specify the playback output level (LV0, LV1) (2) Input the START command to start the playback. The MSM6688/6688L fetches the data of the start address, stop address, sampling frequency, and ADPCM bit length of the specified phrase from the channel index area of the serial voice ROMs and starts the playback operation. (3) When the contents of the address counter coincide with the contents of the stop address register, playback is finished. The end of playback is verified by the RPM bit of the status register. (4) To stop playback in the middle, input the STOP command. In this case, make sure that playback is finished by examining the RPM bit before inputting the next command. (5) To continue playback, specify the record/playback conditions to be modified by the corresponding commands and perform steps (2)-(4).
138/159
Semiconductor Flow chart of ROM playback by Input of Address Code
MSM6688/6688L
SAMP command
Set the command mode to mode 1 (MOD0 = 1, MOD1 = 0).
CHAN command
Select one of 255 phrases (CA0 - CA7)
LEV command
Set playback output level (LV0, LV1).
START command
Start of playback
No
RPM = 1? Yes
Verify the start of playback.
Input record/playback conditions to be modified by the corresponding commands. No
RPM=0? No Stop playback? Yes STOP command
Yes
Verify the end of playback.
STOP of playback
No
RPM = 0? Yes
Verify the end of playback.
Yes
Continue playback? No
139/159
Semiconductor 2. Continuous ROM playback
MSM6688/6688L
The procedure for playback of different phrases such as the time signal continuously is described below. The command inputting procedure for continuous ROM playback is basically equal to that for a single phrase. In this case, during playback of a phrase, the next phrase to be played back can be specified by the NAR bit of the status register. Continuous playback can also be performed by verifying the end of playback of each phrase using the RPM, instead of use of the NAR bit. To make continuous playback using NAR bit perform the following procedure. (1) Specify a phrase by the CHAN command and input the START command to start playback. When the START command is accepted, the NAR bit of the status register goes to 0.
(2) When the NAR bit is changed from 0 to 1 to indicate that the next phrase can be specified and inputted, specify the next phrase to be played back by the CHAN command and input the START command. After the START command is accepted, the NAR bit goes to 0 again. (3) In the same way as mentioned above, repeat the designation of a phrase and input of the START command verifying the state of the NAR bit.
140/159
Semiconductor Flow chart of continuous ROM playback
MSM6688/6688L
No
NAR = 1? Yes CHAN command
Verify whether a phrase can be specified or not.
Specify one of 255 phrases (CA0 - CA7).
START command
The specified phrase is accepted.
No
NAR = 0? Yes
Verify whether playback of the specified phrase is accepted or not.
Yes
Next phrase to be played back?
No No RPM = 0? Yes Verify the end playback.
141/159
Semiconductor Direct ROM Playback Method
MSM6688/6688L
A technique for ROM to be accessed directly is used when the contents of a serial voice ROM prepared for the MSM6388/6588/6588L are played back. The channel index area is not provided at the header area of serial voice ROMs. Therefore, it is required to prepare a ROM in the microcontroller or an external ROM to store the start and stop addresses, sampling frequency, and ADPCM bit length of each phrase. The start address and stop address of each phrase consists of 32 bits. These addresses are indicated in the voice address corresponding list of the serial voice ROM. For example, the addresses to provide the "Message + Cattle Voice (English)" are as shown in the following table.
Voice words No. 1 Message + Cattle Voice (English) Start X address Stop X address Stop Y address
STX11 - STX0 SPX11 - SPX0 SPY7 - SPY0
Sampling frequency fs 6.4kHz
ADPCM bit length 4bit
000h
010h
5Dh
Before starting playback, the address data must be transferred to the channel index area of the status register using the ADRWR command. In this case, a phrase that is not used for record/playback must be specified for this direct ROM playback using the CHAN command. When recording a phrase in the flex record/playback mode, ch00 is inhibited to specify. Normally, ch3F address is used as the phrase dedicated for direct ROM playback. (1) Input the record/playback conditions by the corresponding commands as follows. Specify the ADPCM bit length (BIT). The voice triggered starting (VD0, VD1) is invalid for the playback operation. SAMP command: Set the command mode to mode 3 (MOD1 = 1, MOD0 = 1) and specify the sampling frequency (SA0, SA1). CHAN command: Select one of 64 phrases ch00-ch3F (CA0-CA5). Normally ch3F is used for direct ROM playback ADRWR command: Specify the start and stop addresses. (2) Input the START command to start the ROM playback. The MSM6688/6688L fetches the start address and the stop address of the specified phrase from the channel index area of the serial registers. Then it starts the playback operation. (3) To stop playback in the middle, input the STOP command. In this case, make sure that playback is finished by examining the RPM bit. VDS command:
142/159
Semiconductor Flow chart of direct ROM playback
MSM6688/6688L
VDS command
ADPCM bit length (BIT) Set the command mode to mode 3 (MOD0 = 1, MOD1 = 1). Specify the sampling frequency (SA0, SA1). Select one of 64 phrases (CA0 - CA5). Normally, specify ch3F. Input the start address and stop address.
SAMP command
CHAN command
ADRWR command
START command
Start of playback
No
RPM = 1? Yes RPM = 0? No Yes
Verify the start of playback.
Input record/playback conditions to be modified by the corresponding commands. No
Verify the end of playback.
Stop playback? Yes STOP command Stop of playback.
No
RPM = 0? Yes
Verify the end of playback.
Yes
Continue playback? No
143/159
Semiconductor Stopping Record/Playback Temporarily (by the PAUSE Command)
MSM6688/6688L
The record/playback operation in progress can be stopped temporarily by inputting the PAUSE command. The record/playback operation stopped using the PAUSE command can be restarted by inputting the START command. During temporary stop state, the VPM bit of the status register is 1 and the RPM bit keeps 1. If the START command is input to restart the recording operation that is temporarily suspended by the PAUSE command in the voice reiggered starting mode, the recording will be started immediately even in the state of silence. The PAUSE command is invalid during record/playback state, temporarily stopped state, and standby state for voice.
WR D0 - D3 Status register RPM bit VPM bit Standby Record/playback Temporarily stopped Record/playback Standby START command PAUSE command START command STOP command
Immediately restarted even in case of voice triggered starting
When the STOP command is input during temporarily stopped state, the record/playback operation is finished and the MSM6688/6688L is placed in the standby state.
WR D0 - D3 Status register RPM bit VPM bit Standby Record/standby Temporarily stopped Standby START command PAUSE command STOP command
144/159
Semiconductor Transferring Data to/from External Memories
MSM6688/6688L
1. Method of transferring data to/from external serial registers (by the CHRW command) The MSM6688/6688L can transfer data to/from the user area in the channel index area of external RAM using the CHRW command. Before starting this data transfer operation, a desired phrase must be specified using the CHAN command. The memory capacity for each phrase is 704 bits (176 nibbles) in the flex record/playback mode and 960 bits (240 nibbles) in the direct record/playback mode. The read/write operation must be performed for the data that does not exceed this memory capacity per phrase. The contents of the user area for a specified phrase or for all phrases will be cleared to all 0s (0h data) using the CHAN and DEL commands. The following shows the procedure for inputting the CHRW command. (1) Set the command mode to mode 0 or mode 1 (MOD1=0) using the SAMP command. (2) Specify a phrase using the CHAN command. (3) After inputting the CHAN command, wait for BUSY state duration. The end of the BUSY state duration can also be verified by the BUSY bit of the status register. (4) To write data, input the REC command and then input the data to be written by applying the WR pulse. It is required to wait for the busy state duration between the contiguous WR pulses. When the data writing operation is performed by inputting a single input of the CHRW command, the state of the BUSY bit of the status register can be verified by inputting the RD pulse. When the data read operation is performed with the data write operation, the state of the BUSY bit cannot be verified by inputting the RD pulse. (5) When reading data, wait for the BUSY state duration after inputting the PLAY command and then input the RD pulse. With this operation, 4-bit data will be output via the data bus. (6) To continue the data read or write operation, specify the read or write mode using the PLAY or REC commands. (7) To stop the data read/write operation, input the STOP command. After waiting for the BUSY state duration, the next command can be input.
145/159
Semiconductor Flow chart of data transfer using the CHRW command
MSM6688/6688L
SAMP command
Set the command mode to mode 0 or mode 1 (MOD1=0)
CHAN command
Specify one of 64 phrases (CA0 - CA5).
CHRW command Wait for BUSY state duration No (Data read) PLAY command Wait for BUSY state duration Data input Input RD pulse Data output
Data write?
Yes (Data write) REC command Wait for BUSY state duration Input WR pulse Wait for BUSY state duration
Yes
Continue data transfer? No STOP command Wait for BUSY state duration
146/159
Semiconductor
MSM6688/6688L
2. Method of transferring data to and from external RAM (by the DTRW command) The data transfer to/from external RAM is performed using the DTRW command. After inputting the DTRW command, specify an address to be accessed for data read/write. The transfer of each 4bit data is performed from the starting nibble of the specified address. For the address space, refer to Section 1.2 "Address space allocation in the direct record/playback mode" in "Data Configuration of External RAM." The address designation can be made only in the X direction and random address designation cannot be made in the Y direction to select an arbitrary address in the Y direction. With the input of a single DTRW command, continuous read/write operation can be made in the range of addresses 8Mbit (CS1, CS2, CS3, CS4, ). When the read/write operation is extended to two or more 8Mbits (CS1, CS2, CS3, CS4, ), it is necessary to stop temporarily the read/write operation each time the operation is finished for one serial register, and set the address for another serial register using the DTRW command. (1) Set the common mode to mode 2 (MOD0 = 0, MOD1 = 1) (2) Input the DTRW command (3) Specify the X address in a serial register by inputting the WR pulse five times. Wait for the BUSY state duration. The BUSY state can be verified by examining the state of the BUSY bit of the status register. The 2nd nibble of the DTRW command is a dummy nibble. Always input 0h data into the 2nd nibble. (4) For data writing, input the REC command and input the data to be written by inputting the WR pulse. Wait for the BUSY state duration between the contiguous WR pulses. To make the data write operation by a single input of the DTRW command, the state of the BUSY bit can be verified by inputting the RD pulse. When data write and data read operations are performed jointly, the state at the BUSY bit cannot be verified using the RD pulse. (5) To read data, input the PLAY command and then input the RD pulse after waiting for the BUSY state duration. With this operation, 4-bit data will be output via the data bus. (6) To continue data read/write operation, specify the read or write mode using the PLAY or REC command and make data transfer operation. (7) To finish the data read/write operation, input the STOP command. After waiting for the BUSY state duration, the next command can be input.
147/159
Semiconductor Flow chart of data transfer using the DTRW command
MSM6688/6688L
SAMP command
Specify the command mode to mode 2 (MOD0 = 0, MOD1 = 1).
DTRW command Input dummy nibble (2nd nibble) Input X address (3rd nibble) Input X address (4th nibble) Input X address (5th nibble). Input X address (6th nibble) Wait for BUSY state duration No (Data read) PLAY command Wait for BUSY state duration Data input Input RD pulse Data output
(0, 0, 0, 0)
(X0, X1, X2, X3)
(X4, X5, X6, X7)
(X8, X9, X10, X11)
(X12, X13, X14, X15)
Data write?
Yes (Data write) REC command Wait for BUSY state duration Input WR pulse Wait for BUSY state duration
Yes
Continue data transfer? No STOP command Wait for BUSY state duration
148/159
Semiconductor
MSM6688/6688L
3. Method of reading data from external serial voice ROMs (by the DTRD command) The data from external serial voice ROMs can be read using the DTRD command. After inputting the DTRD command, specify the address to be read. The data is read in groups of 4 bits from the specified address. For the address space, refer to "Data Configuration of External Serial Voice ROMs." The data can be addressed on a 64-bit basis. With the input of a single DTRD command, continuous read/write operation can be made in the range of addresses assigned to the same serial voice ROM. When the read/write operation is extended to two or more serial voice ROMs, it is necessary to stop temporarily the read/write operation each time the operation is finished for the serial voice ROM, and set the address for another serial voice ROM using the DTRD command. The following shows the procedure for inputting the DTRD command. (1) Set the command mode to mode 3 (MOD0 = 1, MOD1 = 1). (2) Input the DTRD command. (3) Specify the X address and Y address of the serial voice ROM by inputting the WR pulse five times. Then, wait for the BUSY state duration. The 6th nibble is a dummy nibble. Always input 0h data into this 6th nibble. (4) Input the PLAY command and wait for the BUSY state duration. Then, input the RD pulse, so that 4-bit data will be output via the data bus. (5) To continue data read operation, perform the data read operation inputting the PLAY command and RD pulse in the same way as mentioned above. (6) To finish the data read operation input the STOP command. After waiting for the BUSY state duration, the next command can be input.
149/159
Semiconductor Flow chart of data read using the DTRD command
MSM6688/6688L
SAMP command
Specify the command mode to mode 3 (MOD0 = 1, MOD1 = 1).
DTRD command Input Y address (2nd nibbles) Input lower bits of X address (3rd nibbles) Input middle 4 bits of X address (4th nibble) Input upper 4 bits of X address (5th nibble) Input dummy nibble (6th nibble) Wait for BUSY state duration
(Y0, Y1, Y2, Y3)
(X0, X1, X2, X3)
(X4, X5, X6, X7)
(X8, X9, X10, X11)
(0, 0, 0, 0)
PLAY command Wait for BUSY state duration Input RD pulse Wait for BUSY state duration Yes Data read
Continue to read data? No STOP command Wait for BUSY state duration
150/159
Semiconductor Record/Playback by Inputting/Outputting Voice Data via Data Bus
MSM6688/6688L
When SRAMs (static RAMs) or other hardware memory products are used to store voice data, the record/playback operation will be performed by using the EXT command. In the case of the record/ playback using the EXT command, voice data is directly input or output via the data bus in synchronization with the sampling frequency. In this record/playback mode, the address control and the control of external RAM and serial voice ROMs are not performed. Therefore, the microcontroller performs the recording time control and address control. In this mode, temporary stop of record/playback operation by the PAUSE command and the voice triggered starting cannot be performed. 1. Method of recording using the EXT command (1) Input the record/playback conditions using the corresponding commands as shown below. VDS command: Set the ADPCM bit length (BIT). Specify the disabled state of voice triggered starting (VD0 = 0, VD1 = 0) SAMP command: Specify the sampling frequency (SA0, SA1) The command mode (MOD0, MOD1) is invalid. REC command: Set to the recording mode
(2) Input the EXT command to start the recording. The sampling frequency clock is output via the MON pin. (3) When the MON pin goes high, input the RD pulse to fetch the ADPCM data from the external memory via the data bus. In the case of 3-bit ADPCM, the upper 3 bits (D3-D1 pins) are valid and the lower 1 bit (D0 pins) is invalid. (4) Store the ADPCM data into the external memory such as SRAMs. (5) Repeat steps (3) and (4) to continue the recording operation.
(6) Input the STOP command to stop the recording operation. Until the STOP command is input, the recording operation will be continued without the limit for the recording time. (7) During recording by the EXT command, the contents of the status register cannot be verified by the RD pulse. Therefore, after inputting the STOP command, wait for the BUSY state duration and then input the next command.
151/159
Semiconductor Flow chart of recording using the EXT command
MSM6688/6688L
SAMP command
Specify the sampling frequency (SA0, SA1).
VDS command
Specify the ADPCM bit length (BIT)
REC command
Set to the recording mode
EXT command
Start the recording by EXT command.
Detection of the rising edge of the pulse at MON output pin
Input the RD pulse Store the ADPCM data into memory Yes Contime recording? No STOP command Wait for BUSY state duration
Fetch ADPCM data from memory.
Store the ADPCM data into an external memory such as SRAM.
End of recording by EXT command
152/159
Semiconductor 2. Method of playback using the EXT command
MSM6688/6688L
(1) Input the record/playback conditions using the corresponding commands as shown below. VDS command: Set to the ADPCM bit length (BIT) specified for recording. Voice triggered starting becomes invalid. SAMP command: Specify the sampling frequency (SA0, SA1) The command mode (MOD0, MOD1) is invalid. PLAY command: Set to the playback mode
(2) Input the EXT command to start the playback. The sampling frequency clock is output via the MON pin. (3) When the MON pin goes high, the ADPCM data is ready to be fetched from an external memory such as an SRAM. (4) Input the WR pulse to fetch the ADPCM data from the external memory via the data bus. In the case of 3-bit ADPCM, the upper 3 bits (D3-D1 pins) are valid and the lower 1 bit (D0 pins) is invalid. (5) Repeat steps (3) and (4) to continue the playback operation. (6) Input the STOP command to stop the playback operation.
153/159
Semiconductor Flow chart of playback using the EXT command
MSM6688/6688L
SAMP command
Specify the sampling frequency (SA0, SA1).
VDS command
Specify the ADPCM bit length (BIT)
PLAY command
Set to the playback mode
EXT command
Start the playback by EXT command.
Detection of the rising edge of the pulse at MON output pin
Read ADPCM data from memory. Input the WR pulse Write the ADPCM data.
Yes
Continue playback? No STOP command Stop the playback by EXT command.
154/159
Semiconductor Suppression of Pop Noise at AOUT Output (by the LEV Command)
MSM6688/6688L
The MSM6688/6688L has a on-chip pop noise suppression circuit to prevent pop nose from being generated due to sharp changes of the DC level of the analog output (at the AOUT pin). The enabled or disabled state of this pop noise suppression circuit can be selected using the ACON pin. When the ACON pin is low, this circuit is disabled and when high, this circuit is enabled. 1. When the POP noise suppression circuit is disabled (ACON = low) When the RESET pin is high, the DC level at the AOUT pin is the ground level, and when the RESET pin is low, the DC level at the AOUT pin is the 1/2 VDD level. Each time the state of the RESET pin is changed, the DC level is changed sharply and pop noise is generated.
RESET 1/2 VDD level AOUT GND level Pop noise Power down Standby Record/playback Standby GND level Pop noise Power down
155/159
Semiconductor 2. When the POP noise suppression circuit is enabled (ACON = high)
MSM6688/6688L
The transition of the DC level at the AOUT (analog output) pin is controlled using the LEV command. When the RESET pulse (low) is applied to the RESET pin, the DC level at the AOUT output pin goes to the ground level. If the pop noise suppression circuit is activated using the PN0 and PN1 bits of the 2nd nibble of the LEV command, the DC level at the AOUT output pin will be changed from the ground level to the 1/2 VDD level or from the 1/2 VDD level to the ground level slowly to prevent pop noise from being generated. Before starting the record/playback operation, always set the DC level at the AOUT pin to the 1/2 VDD level using the LEV command. When enabling the DC level transition function by the LEV command, first specify the playback mode by the PLAY command and then input the LEV command.
PN1 PN0 0 0 1 1 0 1 0 1
DC level transition Disabled Disabled Transition from ground to 1/2 VDD Transition from 1/2 VDD to ground
RESET 1/2 VDD level AOUT GND level GND level
Power down
Transition
Record/playback
Transition
Power down
LEV command
LEV command
156/159
DVDD DVDD' VCC
SADX
AVDD VCC SADX SASX SADY SASY TAS RDCK
SADX SAS SAS
SADY
SAD SAS
SADX
MSM6685
MSM6685
MSM6685
SAS
Semiconductor
MSM6596A-XXX
D3 D2 D1 D0 TAS TAS RWCK
RWCK
SADY TAS
APPLICATION CIRCUIT
4.096 MHz
MICROCONTROLLER 2M SERIAL VOICE ROM MSM6596A-XXX MSM6685 8M SERIAL REGISTER
WE DI/O DROM DOUT TEST
CS1 CS2 VSS
RD WR CE
TAS
RESET PDWN
RWCK WE DI/O
DROM
CS VSS
RWCK WE DIN DOUT TEST TEST NC TEST
MCUM RSEL1 RSEL2 CE TEST
CS1
ACON TEST
CS2
CS3
CS4
ADPCM SOLID-STATE RECORDER IC MSM6688/6688L
BUSY RPM VPM
MIN
MOUT
XT
LIN
XT
MON NAR
LOUT AMON FIN FOUT ADIN AOUT
Speaker drive amplifier
Circuit Diagram 1: Application circuit in microcontroller interface mode with 8M bit serial registers and 2M bit serial voice ROMs
SGC
SG
The circuit diagram 1 shows an application circuit example where the MSM6688/6688L is used in the microcontroller interface mode and four 8M bit serial registers and two 2M bit serial voice ROMs are connected.
MSM6688/6688L
157/159
DGND AGND
+
+
Semiconductor
MSM6688/6688L
PACKAGE DIMENSIONS
(Unit : mm)
QFP56-P-910-0.65-2K
Mirror finish
Package material Lead frame material Pin treatment Solder plate thickness Package weight (g)
Epoxy resin 42 alloy Solder plating 5 mm or more 0.43 TYP.
Notes for Mounting the Surface Mount Type Package The SOP, QFP, TSOP, SOJ, QFJ (PLCC), SHP and BGA are surface mount type packages, which are very susceptible to heat in reflow mounting and humidity absorbed in storage. Therefore, before you perform reflow mounting, contact Oki's responsible sales person for the product name, package name, pin number, package code and desired mounting conditions (reflow method, temperature and times).
158/159
Semiconductor
MSM6688/6688L
(Unit : mm)
TQFP64-P-1010-0.50-K
Mirror finish
Package material Lead frame material Pin treatment Solder plate thickness Package weight (g)
Epoxy resin 42 alloy Solder plating 5 mm or more 0.26 TYP.
Notes for Mounting the Surface Mount Type Package The SOP, QFP, TSOP, SOJ, QFJ (PLCC), SHP and BGA are surface mount type packages, which are very susceptible to heat in reflow mounting and humidity absorbed in storage. Therefore, before you perform reflow mounting, contact Oki's responsible sales person for the product name, package name, pin number, package code and desired mounting conditions (reflow method, temperature and times).
159/159


▲Up To Search▲   

 
Price & Availability of MSM6688

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X